com.jagacy.util
Class JagacyException

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

Field Summary
static int CODEPAGE_ERROR
           
static int CONDUIT_DISCONNECT_ERROR
           
static int CONDUIT_ERROR
           
static int FIELD_NOT_FOUND_ERROR
           
static int INVALID_POSITION_ERROR
           
static int INVALID_PROPERTY_ERROR
           
static int INVALID_SESSION_NAME_ERROR
           
static int KEY_ERROR
           
static int KEYBOARD_LOCKED_ERROR
           
static int LABEL_NOT_FOUND_ERROR
           
static int LOGOFF_ERROR
           
static int MISC_ERROR
           
static int MODEL_ERROR
           
static int PROPERTY_FILE_NOT_FOUND_ERROR
           
static int PROPERTY_NOT_FOUND_ERROR
           
static int SESSION_ERROR
           
 
Constructor Summary
JagacyException(java.lang.Exception e)
           
JagacyException(int error, java.lang.String message)
           
JagacyException(int error, java.lang.String message, java.lang.Exception e)
           
JagacyException(java.lang.String message)
           
JagacyException(java.lang.String message, java.lang.Exception e)
           
 
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
 

Field Detail

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
Constructor Detail

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

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()