BlitzMax Extended  0.8.11
Pushing Blitz to the Max.
blitz_runtimeexception.h
Go to the documentation of this file.
00001 
00008 #ifndef BLITZ_EX_RUNTIMEEXCEPTION_H
00009 #define BLITZ_EX_RUNTIMEEXCEPTION_H
00010 
00011 #include "blitz_blitzexception.h"
00012 
00013 BB_BEGIN_DECLS
00014 
00019 struct BBRuntimeException
00020 {
00021     BBClass         *clas;
00022     int             refs;
00023     
00024     BBException     *cause;
00025     BBString        *message;
00026 };
00027 
00028 extern BBClass bbRuntimeExceptionClass;
00029 
00030 void bbRuntimeExceptionCtor(BBRuntimeException *ex);
00031 void bbRuntimeExceptionDtor(BBRuntimeException *ex);
00032 
00036 BBString* bbRuntimeExceptionToString(const BBRuntimeException *ex);
00037 
00041 BBRuntimeException* bbRuntimeExceptionClone(const BBRuntimeException *ex);
00042 
00043 //  API
00044 
00048 BBString* bbRuntimeExceptionGetMessage(const BBRuntimeException *ex);
00049 
00055 BBRuntimeException* bbRuntimeExceptionCreate(BBString *message, BBException *cause);
00056 
00057 #define bbRuntimeError      brl_blitz_RuntimeError
00058 
00063 void bbRuntimeError(BBString *message);
00064 
00065 BB_END_DECLS
00066 
00067 #endif  // BLITZ_EX_RUNTIMEEXCEPTION_H