org.apache.cocoon.components.elementprocessor
Class CannotCreateElementProcessorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.cocoon.components.elementprocessor.CannotCreateElementProcessorException
All Implemented Interfaces:
Serializable

public class CannotCreateElementProcessorException
extends Exception

Exception to be thrown when an ElementProcessor cannot be created.

Version:
CVS $Id: CannotCreateElementProcessorException.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Marc Johnson (marc_johnson27591@hotmail.com)
See Also:
Serialized Form

Constructor Summary
CannotCreateElementProcessorException(String reason)
          Constructor
 
Method Summary
 String getMessage()
          override of Throwable's getMessage; allows us to format it with the element name
 void setElementName(String name)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CannotCreateElementProcessorException

public CannotCreateElementProcessorException(String reason)
Constructor

Parameters:
reason - a simple explanation why the specified ElementProcessor could not be created.
Method Detail

setElementName

public void setElementName(String name)

getMessage

public String getMessage()
override of Throwable's getMessage; allows us to format it with the element name

Overrides:
getMessage in class Throwable
Returns:
a succinct but useful message describing the problem and which element name we couldn't handle.


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.