BlitzMax Extended
0.7.2
Pushing Blitz to the Max.
|
00001 00008 #ifndef BLITZ_LENGTHEXCEPTION_H 00009 #define BLITZ_LENGTHEXCEPTION_H 00010 00011 #include "blitz_exception.h" 00012 00013 BB_BEGIN_DECLS 00014 00019 struct BBLengthException 00020 { 00021 BBClass *clas; 00022 int refs; 00023 00024 BBString *message; 00025 BBInt code; 00026 BBException *cause; 00027 }; 00028 00029 typedef struct BBLengthException BBLengthException; 00030 00031 extern BBClass bbLengthExceptionClass; 00032 00033 void bbLengthExceptionCtor(BBLengthException *ex); 00034 00035 enum BBLengthExceptionCode 00036 { 00037 BBLENGTHEXCEPTION_INVALID, 00038 BBLENGTHEXCEPTION_TOOSHORT, 00039 BBLENGTHEXCEPTION_TOOLONG 00040 }; 00041 00045 BBLengthException* bbLengthExceptionCreate(BBString *msg, BBInt code, BBException *cause); 00046 00047 00048 00049 BB_END_DECLS 00050 00051 #endif // BLITZ_LENGTHEXCEPTION_H