#include <cel_errutil.h>
|
| | PlatformException (size_t inPlatformErrorCode, GeneralErrorDefinition inError, const String &inErrorDesc, const char *inFileName, int inLine, const char *inFuncName="") |
| |
| size_t | getPlatformErrorCode () const |
| |
| String | getPlatformErrorDescription () const |
| |
| | Exception (GeneralErrorDefinition inError, const char *inErrorDesc, const char *inFileName, int inLine, const char *inFuncName="") |
| |
| | Exception (GeneralErrorDefinition inError, const String &inErrorDesc, const char *inFileName, int inLine, const char *inFuncName="") |
| |
| | Exception (const Exception &inException) |
| |
| Exception & | operator= (const Exception &inException) |
| |
| GeneralErrorDefinition | getError () const |
| |
| String | getMessage () const |
| |
| virtual const char * | what () const throw () |
| |
Special Exception class for platform errors.
| Celartem::PlatformException::PlatformException |
( |
size_t |
inPlatformErrorCode, |
|
|
GeneralErrorDefinition |
inError, |
|
|
const String & |
inErrorDesc, |
|
|
const char * |
inFileName, |
|
|
int |
inLine, |
|
|
const char * |
inFuncName = "" |
|
) |
| |
|
inline |
Create a new Exception. This constructor should not be called directly, you had better use celThrowOSError, celThrowOSError_1 macros.
- Parameters
-
| inPlatformErrorCode | OS error code. |
| inError | An error code defined in GeneralErrorDefinition. |
| inErrorDesc | A string that represents the details of the error status. |
| inFileName | A filename of the source file that contains the caller. Usually, you should set FILE macro. |
| inLine | A line number in the source file that contains the caller. Usually, you should set LINE macro. |
| inFuncName | The name of the function that throws this exception. You can set FUNCTION macro for this parameter. |
- See Also
- celThrow, celThrow2
| size_t Celartem::PlatformException::getPlatformErrorCode |
( |
| ) |
const |
|
inline |
Get associated platform error code.
- Returns
- Platform error code.
| String Celartem::PlatformException::getPlatformErrorDescription |
( |
| ) |
const |
|
inline |
This function returns the string that is mapped to the current error status.
- Returns
- The string that represents the error.
The documentation for this class was generated from the following file: