chemaxon.marvin.plugin
Class PluginException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bychemaxon.marvin.plugin.PluginException
All Implemented Interfaces:
java.io.Serializable

public class PluginException
extends java.lang.Exception

Exception thrown in case of plugin processing or calculation errors. Other exceptions raised during plugin processing are wrapped into a PluginException, so that the caller should catch only PluginException. The wrapped exception can be accessed by the getException() method.

Version:
3.0
Author:
Nora Mate
See Also:
Serialized Form

Constructor Summary
PluginException()
          Default constructor.
PluginException(java.lang.Exception e)
          Constructor with wrapped exception.
PluginException(java.lang.Exception e, int level)
          Constructor with wrapped exception.
PluginException(java.lang.String msg)
          Constructor with message.
PluginException(java.lang.String msg, int level)
          Constructor with message.
 
Method Summary
 int getErrorLevel()
          Returns the error level.
 java.lang.Exception getException()
          Returns the wrapped exception.
 void printStackTrace(java.io.PrintStream s)
          Prints the stack trace together with the stack trace of the wrapped exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, 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()
Default constructor.


PluginException

public PluginException(java.lang.String msg)
Constructor with message.

Parameters:
msg - is the exception message.

PluginException

public PluginException(java.lang.Exception e)
Constructor with wrapped exception.

Parameters:
e - is the wrapped exception

PluginException

public PluginException(java.lang.String msg,
                       int level)
Constructor with message.

Parameters:
msg - is the exception message.
level - is the error level

PluginException

public PluginException(java.lang.Exception e,
                       int level)
Constructor with wrapped exception.

Parameters:
e - is the wrapped exception
level - is the error level
Method Detail

getException

public java.lang.Exception getException()
Returns the wrapped exception.

Returns:
the wrapped exception

getErrorLevel

public int getErrorLevel()
Returns the error level.

Returns:
the error level

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Prints the stack trace together with the stack trace of the wrapped exception.

Parameters:
s - is the PrintStream to use for output