Package com.ibm.ima.plugin
Class ImaPluginException
Object
Throwable
Exception
RuntimeException
com.ibm.ima.plugin.ImaPluginException
- All Implemented Interfaces:
Serializable
The ImaPluginExecption is used to indicate an error when processing a synchronous request.
When processing asynchronous requests, the error will show up as a return code and message.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionImaPluginException(String errcode, String message) Create a plug-in runtime exception without a cause.ImaPluginException(String errcode, String message, Throwable cause) Create a plug-in runtime exception with a cause. -
Method Summary
Modifier and TypeMethodDescriptionGet the error code for the exception.toString()Get a string version of the exception including the error code.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
COPYRIGHT
- See Also:
-
-
Constructor Details
-
ImaPluginException
Create a plug-in runtime exception with a cause.- Parameters:
errcode- The error codemessage- The human readable messagecause- The cause of the exception
-
ImaPluginException
Create a plug-in runtime exception without a cause.- Parameters:
errcode- The error codemessage- The human readable message
-
-
Method Details
-
getErrorCode
Get the error code for the exception. The error code is a String uniquely identifying the exception message and allows the message to be translated.- Returns:
- The error code
-
toString
Get a string version of the exception including the error code.
-