Definition in file exception.h.
Go to the source code of this file.
Classes | |
| struct | s_exception_handler |
Defines | |
| #define | CATCH(X) } else {X = exception_msg(); |
| #define | ENDCATCH } delete_exception_handler(_handler);} |
| #define | THROW(X) throw_exception(X); |
| #define | TRY { EXCEPTIONHANDLER *_handler = create_exception_handler(); if (_handler==NULL) output_error("%s(%d): exception handler creation failed",__FILE__,__LINE__); else if (setjmp(_handler->buf)==0) { |
Typedefs | |
| typedef s_exception_handler | EXCEPTIONHANDLER |
| the exception handler structure | |
Functions | |
| EXCEPTIONHANDLER * | create_exception_handler (void) |
| Creates an exception handler for use in a try block. | |
| void | delete_exception_handler (EXCEPTIONHANDLER *ptr) |
| Deletes an exception handler from the handler list. | |
| char * | exception_msg (void) |
| Retrieves the message of the most recently thrown exception. | |
| void | throw_exception (char *format,...) |
| Throw an exception. | |