chemaxon.marvin.plugin
Class PluginException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by chemaxon.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:
Marvin 3.0
Author:
Nora Mate
See Also:
Serialized Form

Constructor Summary
PluginException()
          Default constructor.
PluginException(java.lang.String msg)
          Constructor with message.
PluginException(java.lang.String msg, int level)
          Constructor with message.
PluginException(java.lang.String msg, java.lang.Throwable e)
          Constructor with wrapped exception.
PluginException(java.lang.Throwable e)
          Constructor with wrapped exception.
PluginException(java.lang.Throwable e, int level)
          Constructor with wrapped exception.
 
Method Summary
 int getErrorLevel()
          Returns the error level.
 java.lang.Throwable getException()
          Returns the wrapped 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()
Default constructor.


PluginException

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

Parameters:
msg - is the exception message.

PluginException

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

Parameters:
e - is the wrapped exception

PluginException

public PluginException(java.lang.String msg,
                       java.lang.Throwable e)
Constructor with wrapped exception.

Parameters:
msg - is the exception message.
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.Throwable e,
                       int level)
Constructor with wrapped exception.

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

getException

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

Returns:
the wrapped exception

getErrorLevel

public int getErrorLevel()
Returns the error level.

Returns:
the error level