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

Variable Index

 o errorType
 o UNICLIENTLIBS_EXCEPTION
 o UNICOMMAND_EXCEPTION
 o UNICONNECTION_EXCEPTION
 o UNIDATASET_EXCEPTION
 o UNIDYNARRAY_EXCEPTION
 o UNIFILE_EXCEPTION
 o UNINLS_EXCEPTION
 o UNISELECTLIST_EXCEPTION
 o UNISEQUENTIALFILE_EXCEPTION
 o UNISESSION_EXCEPTION
 o UNISTRING_EXCEPTION
 o UNISUBROUTINE_EXCEPTION
 o UNITRANSACTION_EXCEPTION

Constructor Index

 o UniException()
Creates the UniException object.
 o UniException(int)
Creates the UniException object.
 o UniException(int, String)
Creates the UniException object.
 o UniException(String, int)
Creates the UniException object.
 o UniException(String, String, int)
Creates the UniException object.

Method Index

 o getErrorCode()
Returns the error number associated with this exception.
 o getErrorType()
Returns the type of exception.
 o getErrorTypeText()
Returns the type of exception in String form
 o getExtendedMessage()
Returns the extended error text associated with this exception

Variables

 o UNICLIENTLIBS_EXCEPTION
 protected static final int UNICLIENTLIBS_EXCEPTION
 o UNISTRING_EXCEPTION
 protected static final int UNISTRING_EXCEPTION
 o UNIDYNARRAY_EXCEPTION
 protected static final int UNIDYNARRAY_EXCEPTION
 o UNICOMMAND_EXCEPTION
 protected static final int UNICOMMAND_EXCEPTION
 o UNIFILE_EXCEPTION
 protected static final int UNIFILE_EXCEPTION
 o UNINLS_EXCEPTION
 protected static final int UNINLS_EXCEPTION
 o UNISELECTLIST_EXCEPTION
 protected static final int UNISELECTLIST_EXCEPTION
 o UNISEQUENTIALFILE_EXCEPTION
 protected static final int UNISEQUENTIALFILE_EXCEPTION
 o UNISESSION_EXCEPTION
 protected static final int UNISESSION_EXCEPTION
 o UNISUBROUTINE_EXCEPTION
 protected static final int UNISUBROUTINE_EXCEPTION
 o UNITRANSACTION_EXCEPTION
 protected static final int UNITRANSACTION_EXCEPTION
 o UNICONNECTION_EXCEPTION
 protected static final int UNICONNECTION_EXCEPTION
 o UNIDATASET_EXCEPTION
 protected static final int UNIDATASET_EXCEPTION
 o errorType
 protected int errorType

Constructors

 o UniException
 public UniException()
Creates the UniException object.

 o 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
 o 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
 o 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
 o 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

Methods

 o getErrorCode
 public int getErrorCode()
Returns the error number associated with this exception.

Returns:
integer representing the error number
 o getExtendedMessage
 public String getExtendedMessage()
Returns the extended error text associated with this exception

Returns:
integer representing the error number
 o getErrorType
 public int getErrorType()
Returns the type of exception.

Returns:
int representing this exception
 o 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