All Packages Class Hierarchy This Package Previous Next Index
Class asjava.uniclientlibs.UniException
java.lang.Object
|
+----java.lang.Throwable
|
+----asjava.uniclientlibs.UniException
- public class UniException
- extends Throwable
UniException
is the primary class used for handling UniObjects
Java class exceptions and errors. This internal error handling method is
based on Java's method of handling errors. We have also carried over the
idea of having an integer identifier for the message which can make the
handling of said message a lot easier.
- Version:
- Version 1.0
- Author:
- David T. Meeks
-
errorType
-
-
UNICLIENTLIBS_EXCEPTION
-
-
UNICOMMAND_EXCEPTION
-
-
UNICONNECTION_EXCEPTION
-
-
UNIDATASET_EXCEPTION
-
-
UNIDYNARRAY_EXCEPTION
-
-
UNIFILE_EXCEPTION
-
-
UNINLS_EXCEPTION
-
-
UNISELECTLIST_EXCEPTION
-
-
UNISEQUENTIALFILE_EXCEPTION
-
-
UNISESSION_EXCEPTION
-
-
UNISTRING_EXCEPTION
-
-
UNISUBROUTINE_EXCEPTION
-
-
UNITRANSACTION_EXCEPTION
-
-
UniException()
- Creates the UniException object.
-
UniException(int)
- Creates the UniException object.
-
UniException(int, String)
- Creates the UniException object.
-
UniException(String, int)
- Creates the UniException object.
-
UniException(String, String, int)
- Creates the UniException object.
-
getErrorCode()
- Returns the error number associated with this exception.
-
getErrorType()
- Returns the type of exception.
-
getErrorTypeText()
- Returns the type of exception in String form
-
getExtendedMessage()
- Returns the extended error text associated with this exception
UNICLIENTLIBS_EXCEPTION
protected static final int UNICLIENTLIBS_EXCEPTION
UNISTRING_EXCEPTION
protected static final int UNISTRING_EXCEPTION
UNIDYNARRAY_EXCEPTION
protected static final int UNIDYNARRAY_EXCEPTION
UNICOMMAND_EXCEPTION
protected static final int UNICOMMAND_EXCEPTION
UNIFILE_EXCEPTION
protected static final int UNIFILE_EXCEPTION
UNINLS_EXCEPTION
protected static final int UNINLS_EXCEPTION
UNISELECTLIST_EXCEPTION
protected static final int UNISELECTLIST_EXCEPTION
UNISEQUENTIALFILE_EXCEPTION
protected static final int UNISEQUENTIALFILE_EXCEPTION
UNISESSION_EXCEPTION
protected static final int UNISESSION_EXCEPTION
UNISUBROUTINE_EXCEPTION
protected static final int UNISUBROUTINE_EXCEPTION
UNITRANSACTION_EXCEPTION
protected static final int UNITRANSACTION_EXCEPTION
UNICONNECTION_EXCEPTION
protected static final int UNICONNECTION_EXCEPTION
UNIDATASET_EXCEPTION
protected static final int UNIDATASET_EXCEPTION
errorType
protected int errorType
UniException
public UniException()
- Creates the UniException object.
UniException
public UniException(int aErrorCode)
- Creates the UniException object. This version only takes the error code
of the failure, which it will use to lookup the error text from the
UniErrorMessage
object.
- Parameters:
- aErrorCode - integer representing the error number that occured
UniException
public UniException(String aError,
int aErrorCode)
- Creates the UniException object. Takes the error text from the exception
and does not extract the message from
UniErrorMessage
- Parameters:
- aError - string representing the message to be displayed
- aErrorCode - integer representing the error number that occured
UniException
public UniException(int aErrorCode,
String aExtraInfo)
- Creates the UniException object. Takes the error text from the from
UniErrorMessage
, also uses the extra info passed in to properly
set the error message
- Parameters:
- aExtraInfo - string representing the extra information to be displayed
- aErrorCode - integer representing the error number that occured
UniException
public UniException(String aClassName,
String aError,
int aErrorCode)
- Creates the UniException object.
- Parameters:
- aClassName - string representing the name of the class failure occured
- aError - string representing the message to be displayed
- aErrorCode - integer representing the error number that occured
getErrorCode
public int getErrorCode()
- Returns the error number associated with this exception.
- Returns:
- integer representing the error number
getExtendedMessage
public String getExtendedMessage()
- Returns the extended error text associated with this exception
- Returns:
- integer representing the error number
getErrorType
public int getErrorType()
- Returns the type of exception.
- Returns:
- int representing this exception
getErrorTypeText
public String getErrorTypeText()
- Returns the type of exception in String form
- Returns:
- String representing this exception
All Packages Class Hierarchy This Package Previous Next Index