|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
asjava.uniclientlibs.UniException
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.
Field Summary | |
---|---|
protected int |
errorType
|
static int |
UNICLIENTLIBS_EXCEPTION
|
static int |
UNICOMMAND_EXCEPTION
|
static int |
UNICONNECTION_EXCEPTION
|
static int |
UNIDATASET_EXCEPTION
|
static int |
UNIDYNARRAY_EXCEPTION
|
static int |
UNIFILE_EXCEPTION
|
static int |
UNINLS_EXCEPTION
|
static int |
UNISELECTLIST_EXCEPTION
|
static int |
UNISEQUENTIALFILE_EXCEPTION
|
static int |
UNISESSION_EXCEPTION
|
static int |
UNISTRING_EXCEPTION
|
static int |
UNISUBROUTINE_EXCEPTION
|
static int |
UNITRANSACTION_EXCEPTION
|
static int |
UNIXML_EXCEPTION
|
Constructor Summary | |
---|---|
UniException()
Creates the UniException object. |
|
UniException(int aErrorCode)
Creates the UniException object. |
|
UniException(int aErrorCode,
java.lang.String aExtraInfo)
Creates the UniException object. |
|
UniException(java.lang.String aError,
int aErrorCode)
Creates the UniException object. |
|
UniException(java.lang.String aClassName,
java.lang.String aError,
int aErrorCode)
Creates the UniException object. |
Method Summary | |
---|---|
int |
getErrorCode()
Returns the error number associated with this exception. |
int |
getErrorType()
Returns the type of exception. |
java.lang.String |
getErrorTypeText()
Returns the type of exception in String form |
java.lang.String |
getExtendedMessage()
Returns the extended error text associated with this exception |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int UNICLIENTLIBS_EXCEPTION
public static final int UNISTRING_EXCEPTION
public static final int UNIDYNARRAY_EXCEPTION
public static final int UNICOMMAND_EXCEPTION
public static final int UNIFILE_EXCEPTION
public static final int UNINLS_EXCEPTION
public static final int UNISELECTLIST_EXCEPTION
public static final int UNISEQUENTIALFILE_EXCEPTION
public static final int UNISESSION_EXCEPTION
public static final int UNISUBROUTINE_EXCEPTION
public static final int UNITRANSACTION_EXCEPTION
public static final int UNICONNECTION_EXCEPTION
public static final int UNIDATASET_EXCEPTION
public static final int UNIXML_EXCEPTION
protected int errorType
Constructor Detail |
public UniException()
public UniException(int aErrorCode)
UniErrorMessage
object.
aErrorCode
- integer representing the error number that occuredpublic UniException(java.lang.String aError, int aErrorCode)
UniErrorMessage
aError
- string representing the message to be displayedaErrorCode
- integer representing the error number that occuredpublic UniException(int aErrorCode, java.lang.String aExtraInfo)
UniErrorMessage
, also uses the extra info passed in to properly
set the error message
aExtraInfo
- string representing the extra information to be displayedaErrorCode
- integer representing the error number that occuredpublic UniException(java.lang.String aClassName, java.lang.String aError, int aErrorCode)
aClassName
- string representing the name of the class failure occuredaError
- string representing the message to be displayedaErrorCode
- integer representing the error number that occuredMethod Detail |
public int getErrorCode()
public java.lang.String getExtendedMessage()
public int getErrorType()
public java.lang.String getErrorTypeText()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |