![]() |
exceptions4c
version 3.0
An exception handling framework for C
|
Represents an exception type in the exception handling system. More...
Data Fields | |
const char * | name |
The name of this exception type. More... | |
const char | default_message [E4C_EXCEPTION_MESSAGE_SIZE] |
The default message of this exception type. More... | |
const e4c_exception_type * | supertype |
The supertype of this exception type. More... | |
Represents an exception type in the exception handling system.
The types of the exceptions a program will use are defined in source code files through the macro E4C_DEFINE_EXCEPTION
. In addition, they are declared in header files through the macro E4C_DECLARE_EXCEPTION
.
When defining types of exceptions, they are given a name, a default message and a supertype to organize them into a pseudo-hierarchy:
Exceptions are defined as global objects. There is a set of predefined exceptions built into the framework; RuntimeException
is the root of the exceptions pseudo-hierarchy:
const char e4c_exception_type::default_message[E4C_EXCEPTION_MESSAGE_SIZE] |
The default message of this exception type.
const char* e4c_exception_type::name |
The name of this exception type.
const e4c_exception_type* e4c_exception_type::supertype |
The supertype of this exception type.