org.liquidsite.app.plugin
Class PluginException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.liquidsite.app.plugin.PluginException
All Implemented Interfaces:
java.io.Serializable

public class PluginException
extends java.lang.Exception

A plugin exception. This is thrown when a plugin failed to load or initialize properly.

See Also:
Serialized Form

Constructor Summary
PluginException(java.lang.Exception cause)
          Creates a new plugin exception.
PluginException(java.lang.String message)
          Creates a new plugin exception.
PluginException(java.lang.String message, java.lang.Exception cause)
          Creates a new plugin exception.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the root exception cause.
 java.lang.String getMessage()
          Returns the detailed error message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

PluginException

public PluginException(java.lang.String message)
Creates a new plugin exception.

Parameters:
message - the error message

PluginException

public PluginException(java.lang.Exception cause)
Creates a new plugin exception.

Parameters:
cause - the root cause to the error

PluginException

public PluginException(java.lang.String message,
                       java.lang.Exception cause)
Creates a new plugin exception.

Parameters:
message - the error message
cause - the root cause to the error
Method Detail

getMessage

public java.lang.String getMessage()
Returns the detailed error message. This error message will include any messages from the root errors.

Returns:
the detailed error message

getCause

public java.lang.Throwable getCause()
Returns the root exception cause.

Returns:
the root exception cause, or null for none