Package chemaxon.marvin.plugin
Class PluginException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- chemaxon.marvin.plugin.PluginException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PluginInputCheckerException
@PublicAPI public class PluginException extends 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 thegetException()
method.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PluginException()
Default constructor.PluginException(String msg)
Constructor with message.PluginException(String msg, int level)
Deprecated, for removal: This API element is subject to removal in a future version.Error level is never set or used by the API.PluginException(String msg, Throwable e)
Constructor with wrapped exception.PluginException(Throwable e)
Constructor with wrapped exception.PluginException(Throwable e, int level)
Deprecated, for removal: This API element is subject to removal in a future version.Error level is never set or used by the API.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getErrorLevel()
Deprecated, for removal: This API element is subject to removal in a future version.Error level is never set or used by the API.Throwable
getException()
Returns the wrapped exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
PluginException
public PluginException()
Default constructor.
-
PluginException
public PluginException(String msg)
Constructor with message.- Parameters:
msg
- is the exception message.
-
PluginException
public PluginException(Throwable e)
Constructor with wrapped exception.- Parameters:
e
- is the wrapped exception
-
PluginException
public PluginException(String msg, Throwable e)
Constructor with wrapped exception.- Parameters:
msg
- is the exception message.e
- is the wrapped exception
-
PluginException
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2023) public PluginException(String msg, int level)
Deprecated, for removal: This API element is subject to removal in a future version.Error level is never set or used by the API. This feature will be completely removed.Constructor with message.- Parameters:
msg
- is the exception message.level
- is the error level
-
PluginException
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2023) public PluginException(Throwable e, int level)
Deprecated, for removal: This API element is subject to removal in a future version.Error level is never set or used by the API. This feature will be completely removed.Constructor with wrapped exception.- Parameters:
e
- is the wrapped exceptionlevel
- is the error level
-
-
Method Detail
-
getException
public Throwable getException()
Returns the wrapped exception.- Returns:
- the wrapped exception
-
getErrorLevel
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2023) public int getErrorLevel()
Deprecated, for removal: This API element is subject to removal in a future version.Error level is never set or used by the API. This feature will be completely removed.Returns the error level.- Returns:
- the error level
-
-