net.sf.exorcist.api
Class ContentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.sf.exorcist.api.ContentException
All Implemented Interfaces:
java.io.Serializable

public class ContentException
extends java.lang.Exception

Exception for reporting problems within Exorcist plugins. A ContentException is thrown by an Exorcist plugin when some external reason prevents the plugin from performing its task. Examples of such reasons are:

Runtime problems such as missing dependencies, out of memory errors, and internal logic problems (null pointers, etc.) should be reported using standard RuntimeExceptions and Errors.

See Also:
Serialized Form

Constructor Summary
ContentException(java.lang.String message)
          Creates a ContentException with the given error message.
ContentException(java.lang.String message, java.lang.Throwable cause)
          Creates a ContentException with the given error message and root cause.
ContentException(java.lang.Throwable cause)
          Creates a ContentException with the given root cause.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

ContentException

public ContentException(java.lang.String message)
Creates a ContentException with the given error message.

Parameters:
message - error message

ContentException

public ContentException(java.lang.Throwable cause)
Creates a ContentException with the given root cause.

Parameters:
cause - root cause of this exception

ContentException

public ContentException(java.lang.String message,
                        java.lang.Throwable cause)
Creates a ContentException with the given error message and root cause.

Parameters:
message - error message
cause - root cause of this exception


Copyright © 2005 The Exorcist Team @ SourceForge. All Rights Reserved.