com.jagacy.util
Class JagacyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.jagacy.util.JagacyException
- All Implemented Interfaces:
- java.io.Serializable
- public class JagacyException
- extends java.lang.Exception
The only checked exception thown by Jagacy. May have a chained exception within it.
- Author:
- Robert M. Preston
- See Also:
- Serialized Form
Method Summary |
int |
getError()
Returns the error code. |
java.lang.Exception |
getException()
Retrives the chained exception. |
java.lang.String |
getMessage()
|
boolean |
hasException()
Determines if there is a chained exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MISC_ERROR
public static final int MISC_ERROR
- See Also:
- Constant Field Values
CONDUIT_ERROR
public static final int CONDUIT_ERROR
- See Also:
- Constant Field Values
MODEL_ERROR
public static final int MODEL_ERROR
- See Also:
- Constant Field Values
SESSION_ERROR
public static final int SESSION_ERROR
- See Also:
- Constant Field Values
PROPERTY_NOT_FOUND_ERROR
public static final int PROPERTY_NOT_FOUND_ERROR
- See Also:
- Constant Field Values
INVALID_PROPERTY_ERROR
public static final int INVALID_PROPERTY_ERROR
- See Also:
- Constant Field Values
INVALID_SESSION_NAME_ERROR
public static final int INVALID_SESSION_NAME_ERROR
- See Also:
- Constant Field Values
CODEPAGE_ERROR
public static final int CODEPAGE_ERROR
- See Also:
- Constant Field Values
KEY_ERROR
public static final int KEY_ERROR
- See Also:
- Constant Field Values
INVALID_POSITION_ERROR
public static final int INVALID_POSITION_ERROR
- See Also:
- Constant Field Values
KEYBOARD_LOCKED_ERROR
public static final int KEYBOARD_LOCKED_ERROR
- See Also:
- Constant Field Values
FIELD_NOT_FOUND_ERROR
public static final int FIELD_NOT_FOUND_ERROR
- See Also:
- Constant Field Values
LABEL_NOT_FOUND_ERROR
public static final int LABEL_NOT_FOUND_ERROR
- See Also:
- Constant Field Values
LOGOFF_ERROR
public static final int LOGOFF_ERROR
- See Also:
- Constant Field Values
PROPERTY_FILE_NOT_FOUND_ERROR
public static final int PROPERTY_FILE_NOT_FOUND_ERROR
- See Also:
- Constant Field Values
CONDUIT_DISCONNECT_ERROR
public static final int CONDUIT_DISCONNECT_ERROR
- See Also:
- Constant Field Values
JagacyException
public JagacyException(java.lang.String message)
- Parameters:
message
- Exception message.
JagacyException
public JagacyException(int error,
java.lang.String message)
- Parameters:
error
- Error code.message
- Exception message.
JagacyException
public JagacyException(int error,
java.lang.String message,
java.lang.Exception e)
- Parameters:
error
- Error code.message
- Exception message.e
- Chained exception.
JagacyException
public JagacyException(java.lang.String message,
java.lang.Exception e)
- Parameters:
message
- Exception message.e
- Chained exception.
JagacyException
public JagacyException(java.lang.Exception e)
- Parameters:
e
- Chained exception.
getError
public int getError()
- Returns the error code.
- Returns:
- The error code.
hasException
public boolean hasException()
- Determines if there is a chained exception.
- Returns:
- true if there's a chained exception; false otherwise.
getException
public java.lang.Exception getException()
- Retrives the chained exception.
- Returns:
- Chained exception.
getMessage
public java.lang.String getMessage()