![]() |
BlitzMax Extended
0.8.11
Pushing Blitz to the Max.
|
Basic exception class. More...
#include "_common.h"
Go to the source code of this file.
Data Structures | |
struct | BBException |
Base for all exceptions. More... | |
Functions | |
BBException * | bbExceptionGetCause (const BBException *ex) |
Gets the cause of an exception. | |
void | bbExceptionInitCause (BBException *ex, BBException *cause) |
Initializes the cause of an exception. |
Basic exception class.
A minimalist common interface for all exceptions.
BBException* bbExceptionGetCause | ( | const BBException * | ex | ) |
Gets the cause of an exception.
ex | The exception whose cause is returned |
void bbExceptionInitCause | ( | BBException * | ex, |
BBException * | cause | ||
) |
Initializes the cause of an exception.
Initializing an exception's cause can only be done once, usually in the classes own "Create" function. However it can also be done afterwards, in case the process of creation does not automatically take care of it.
ex | The exception whose cause should be set |
cause | The previous exception that caused the current one |