Package FairCom.CtreeDb
Class CTException
- All Implemented Interfaces:
Serializable
Exception handling class for the c-treeDB for Java (JTDB) layer.
It is used to throw an error message when an exception occurs.
- See Also:
-
Constructor Summary
ConstructorDescriptionCTException
(int ErrorCode) Constructor for the CTException class.CTException
(int ErrorCode, String ErrorMsg) Constructor for the CTException class. -
Method Summary
Modifier and TypeMethodDescriptionlong
Retrieves the error code from the current exception.Retrieves the error message from the current exception.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CTException
public CTException(int ErrorCode) Constructor for the CTException class.- Parameters:
ErrorCode
- Error code to assign to the exception. Expected values areCTDBRET
.- See Also:
-
CTException
Constructor for the CTException class.- Parameters:
ErrorCode
- Error code to assign to the exception. Expected values areCTDBRET
.ErrorMsg
- Error message to be assigned to the exception.- See Also:
-
-
Method Details
-
GetErrorCode
public long GetErrorCode()Retrieves the error code from the current exception.- Returns:
- Error code. Expected values are
CTDBRET
. - See Also:
-
GetErrorMsg
Retrieves the error message from the current exception.- Returns:
- Current error message.
- See Also:
-