![]() |
exceptions4c
version 2.8
An exception handling framework for C
|
Represents an instance of an exception type. More...
Data Fields | |
const char * | name |
The name of this exception. | |
char | message [E4C_EXCEPTION_MESSAGE_SIZE] |
The message of this exception. | |
const char * | file |
The path of the source code file from which the exception was thrown. | |
int | line |
The number of line from which the exception was thrown. | |
const char * | function |
The function from which the exception was thrown. | |
int | error_number |
The value of errno at the time the exception was thrown. | |
const e4c_exception_type * | type |
The type of this exception. | |
e4c_exception * | cause |
The cause of this exception. |
Represents an instance of an exception type.
Exceptions are a means of breaking out of the normal flow of control of a code block in order to handle errors or other exceptional conditions. An exception should be thrown at the point where the error is detected; it may be handled by the surrounding code block or by any code block that directly or indirectly invoked the code block where the error occurred.
Exceptions provide information regarding the exceptional situation, such as:
errno
at the time the exception was thrown catch
or finally
block catch
blockcatch
( RuntimeException
), except for AssertionException
.The cause of this exception.
The value of errno at the time the exception was thrown.
const char* e4c_exception::file |
The path of the source code file from which the exception was thrown.
const char* e4c_exception::function |
The function from which the exception was thrown.
The number of line from which the exception was thrown.
char e4c_exception::message[E4C_EXCEPTION_MESSAGE_SIZE] |
The message of this exception.
const char* e4c_exception::name |
The name of this exception.
The type of this exception.