TFormerException Class Reference
This class implements exceptions that are thrown by the native TFormer DLL.
More...
List of all members.
Public Member Functions |
|
long | getErrorCode () |
| | Returns the internal error code of the TFORMer runtime library.
|
| String | getInformation () |
| | Returns the description of the error.
|
| String | getSourceReference () |
| | Returns the source reference of the error.
|
|
String | getWin32ErrorCode () |
| | Returns the internal error code of the TFORMer runtime library.
|
| boolean | isErrorCodeSet () |
| | Tests if exists the internal error code of the TFORMer runtime library.
|
| | TFormerException (String code, String description, String information, String sourceReference) |
| | Constructor with all informations available from TFORMer Runtime
|
| | TFormerException (String sMessage, int nErrorCode) |
| | Constructor with text message and error code.
|
| | TFormerException (String sMessage, Throwable cause) |
| | Constructor with text message and original exception.
|
| | TFormerException (String sMessage) |
| | Constructor with text message only.
|
Static Public Attributes |
|
static final long | ERR_ELEMENT_NOT_FOUND = 2147647531L |
| | element not found in the TFORMer runtime (0x8002802B)
|
|
static final long | ERR_OBJECT_NOT_FOUND = 4312 |
| | object not found in the TFORMer runtime
|
|
static final long | ERR_OK = 0 |
| | the error code if no error occurred
|
Detailed Description
This class implements exceptions that are thrown by the native TFormer DLL.
Constructor & Destructor Documentation
Constructor with text message only.
- Parameters:
-
| sMessage | error message text |
Constructor with text message and original exception.
- Parameters:
-
| sMessage | error message text |
| cause | original exception |
| TFormerException |
( |
String |
code, |
|
|
String |
description, |
|
|
String |
information, |
|
|
String |
sourceReference | |
|
) |
| | |
Constructor with all informations available from TFORMer Runtime
- Parameters:
-
| code | error code in hexadecimal format |
| description | description of the error in TFORMer library |
| information | additional information of the error in TFORMer library |
| sourceReference | references of the error in the TFORMer source library |
Member Function Documentation
| String getInformation |
( |
|
) |
|
Returns the description of the error.
This method returns the value of the function GetLastErrorInformation of the TFORMer runtime library
- Returns:
null if this information is unavailable
| String getSourceReference |
( |
|
) |
|
Returns the source reference of the error.
This method returns the value of the function GetLastErrorSource of the TFORMer runtime library
- Returns:
null if this information is unavailable
| boolean isErrorCodeSet |
( |
|
) |
|
Tests if exists the internal error code of the TFORMer runtime library.
- Returns:
true for a internal error code, otherwise false
- See also:
- getErrorCode()