org.jinterop.dcom.common
Class JIException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
JIException(int errorCode)
           
JIException(int errorCode, java.lang.String message)
           
JIException(int errorCode, java.lang.String message, java.lang.Throwable cause)
           
JIException(int errorCode, java.lang.Throwable cause)
           
JIException(JIRuntimeException exception)
           
 
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
 

Constructor Detail

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)
Method Detail

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.