org.apache.wiki.api.exceptions
Class PluginException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.wiki.api.exceptions.WikiException
              extended by org.apache.wiki.api.exceptions.PluginException
All Implemented Interfaces:
Serializable

public class PluginException
extends WikiException

Provides a generic PluginException. This is the kind of an exception that the plugins should throw.

See Also:
Serialized Form

Constructor Summary
PluginException(String message)
          Create a PluginException.
PluginException(String message, Throwable original)
          Create a PluginException with the given original exception wrapped.
 
Method Summary
 Throwable getRootThrowable()
          Return the original exception.
 
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

PluginException

public PluginException(String message)
Create a PluginException.

Parameters:
message -

PluginException

public PluginException(String message,
                       Throwable original)
Create a PluginException with the given original exception wrapped.

Parameters:
message -
original - The original exception.
Method Detail

getRootThrowable

public Throwable getRootThrowable()
Return the original exception.

Returns:
The original exception.


Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.