org.apache.cocoon.components.elementprocessor
Class CannotCreateElementProcessorException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.apache.cocoon.components.elementprocessor.CannotCreateElementProcessorException
- All Implemented Interfaces:
- java.io.Serializable
- public class CannotCreateElementProcessorException
- extends java.lang.Exception
Exception to be thrown when an ElementProcessor cannot be created.
- Author:
- Marc Johnson (marc_johnson27591@hotmail.com)
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getMessage()
override of Throwable's getMessage; allows us to format it
with the element name |
void |
setElementName(java.lang.String name)
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CannotCreateElementProcessorException
public CannotCreateElementProcessorException(java.lang.String reason)
- Constructor
- Parameters:
reason
- a simple explanation why the specified
ElementProcessor could not be created.
setElementName
public void setElementName(java.lang.String name)
getMessage
public java.lang.String getMessage()
- override of Throwable's getMessage; allows us to format it
with the element name
- Overrides:
getMessage
in class java.lang.Throwable
- Returns:
- a succinct but useful message describing the
problem and which element name we couldn't handle.
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.