org.jinterop.dcom.common
Class JIException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jinterop.dcom.common.JIException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- JIAutomationException
public class JIException
- extends java.lang.Exception
Exception class for the framework. Developers are expected to catch or re-throw these exceptions.
and not create one themselves.
- Since:
- 1.0
- See Also:
- Serialized Form
Method Summary |
int |
getErrorCode()
Returns the error code associated with this exception. |
java.lang.String |
getMessage()
Returns the localized error messages. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JIException
public JIException(int errorCode,
java.lang.String message)
JIException
public JIException(int errorCode)
JIException
public JIException(int errorCode,
java.lang.Throwable cause)
JIException
public JIException(JIRuntimeException exception)
JIException
public JIException(int errorCode,
java.lang.String message,
java.lang.Throwable cause)
getMessage
public java.lang.String getMessage()
- Returns the localized error messages.
- Overrides:
getMessage
in class java.lang.Throwable
- Returns:
getErrorCode
public int getErrorCode()
- Returns the error code associated with this exception. Please refer
JIErrorCodes
for a complete list of errors.
- Returns:
- int representing the error code.