BlitzMax Extended  0.8.16
Pushing Blitz to the Max.
blitz_runtimeexception.h
Go to the documentation of this file.
1 
8 #ifndef BLITZ_EX_RUNTIMEEXCEPTION_H
9 #define BLITZ_EX_RUNTIMEEXCEPTION_H
10 
11 #include "blitz_blitzexception.h"
12 
13 BB_BEGIN_DECLS
14 
20 {
22  int refs;
23 
25  BBString *message;
26 };
27 
28 extern BBClass bbRuntimeExceptionClass;
29 
30 void bbRuntimeExceptionCtor(BBRuntimeException *ex);
31 void bbRuntimeExceptionDtor(BBRuntimeException *ex);
32 
36 BBString* bbRuntimeExceptionToString(const BBRuntimeException *ex);
37 
41 BBRuntimeException* bbRuntimeExceptionClone(const BBRuntimeException *ex);
42 
43 // API
44 
48 BBString* bbRuntimeExceptionGetMessage(const BBRuntimeException *ex);
49 
55 BBRuntimeException* bbRuntimeExceptionCreate(BBString *message, BBException *cause);
56 
57 #define bbRuntimeError brl_blitz_RuntimeError
58 
63 void bbRuntimeError(BBString *message);
64 
65 BB_END_DECLS
66 
67 #endif // BLITZ_EX_RUNTIMEEXCEPTION_H