#include <string.h>
#include <errno.h>
#include <new>
#include "FXString.h"
#define FXERRMAKE | ( | e2, | |||
msg, | |||||
code, | |||||
flags | ) |
The preferred way to create a FXException, this constructs one into e2 with message msg, code code and flags being the usual exception flags
#define FXERRH_THROW | ( | e2 | ) |
Throws the specified exception.
#define FXERRG | ( | msg, | |||
code, | |||||
flags | ) |
This combines a FXERRMAKE() with a FXERRH_THROW().
#define FXERRH | ( | cond, | |||
msg, | |||||
code, | |||||
flags | ) |
This performs the assertion cond, which if false throws the specified exception.
Referenced by FX::FXCodeToPythonCode< vector, length >::allocate().
#define FXERRGOS | ( | code, | |||
flags | ) |
Use this macro to generate a FXException representing the CLib/POSIX error code code. Flags are as for usual exceptions
#define FXERRHOS | ( | exp | ) |
Use this macro to wrap POSIX, UNIX or CLib functions. On Win32, the includes anything in MSVCRT which sets errno
Referenced by FX::QMutex::QMutex().
#define FXERRH_TRY |
Enters a section of code guarded against exceptions.
#define FXERRH_CATCH | ( | e2 | ) |
Catches a specific exception.
#define FXERRH_REPORT | ( | owner, | |||
e2 | ) |
owner | Either a FXApp or FXWindow | |
e2 | The FXException to report Reports the exception e to the user |
include "FXExceptionDialog.h"
for this to compile #define FXERRH_ENDTRY |
Ends the section of guarded code plus its exception handlers.
#define FXDELETE | ( | v | ) |
Deletes and zeros a variable so it won't get deleted again (usually a class member variable).
#define FXEXCEPTION_STL1 |
Enters a section of code guarded against std::bad_alloc
exceptions.
Referenced by FX::QPtrVector< TnFXGraphItem >::append(), FX::QPtrList< type >::append(), FX::QPtrVector< TnFXGraphItem >::insert(), FX::QPtrList< type >::insert(), FX::FXLRUCache< FX::QDict< type > >::insert(), FX::QPtrVector< type >::insertAtIter(), FX::QPtrList< type >::insertAtIter(), FX::QPtrVector< TnFXGraphItem >::inSort(), FX::QPtrList< type >::inSort(), FX::QPtrList< type >::prepend(), FX::QMemArray< FX::FXCodeToPythonCode::CodeItem >::push_back(), FX::QMemArray< FX::FXCodeToPythonCode::CodeItem >::resize(), and FX::QDictBase< FX::FXString, type >::resize().
#define FXEXCEPTION_STL2 |
Exits a section of code guarded against std::bad_alloc
exceptions.
Referenced by FX::QPtrVector< TnFXGraphItem >::append(), FX::QPtrList< type >::append(), FX::QPtrVector< TnFXGraphItem >::insert(), FX::QPtrList< type >::insert(), FX::FXLRUCache< FX::QDict< type > >::insert(), FX::QPtrVector< type >::insertAtIter(), FX::QPtrList< type >::insertAtIter(), FX::QPtrVector< TnFXGraphItem >::inSort(), FX::QPtrList< type >::inSort(), FX::QPtrList< type >::prepend(), FX::QMemArray< FX::FXCodeToPythonCode::CodeItem >::push_back(), FX::QMemArray< FX::FXCodeToPythonCode::CodeItem >::resize(), and FX::QDictBase< FX::FXString, type >::resize().
#define FXEXCEPTION_FOXCALLING1 |
Enters a section of code called by exception-unaware code eg; FOX GUI code.
#define FXEXCEPTION_FOXCALLING2 |
Exits a section of code called by exception-unaware code eg; FOX GUI code.
#define FXERRGRANGE | ( | msg, | |||
flags | ) |
#define FXERRHPTR | ( | exp, | |||
flags | ) |
#define FXERRHM | ( | exp | ) |
FXPtrHold ptr; FXERRHM(ptr=new Object());
Referenced by FX::Generic::Functor< FX::Generic::TL::create< long, FX::FXObject *, FXuint, void * >::value >::copy(), FX::Generic::Functor< FX::Generic::TL::create< long, FX::FXObject *, FXuint, void * >::value >::Functor(), FX::FXIPCChannel::invokeMsgHandler(), FX::Generic::lockedAccessor< type >::lockedAccessor(), and FX::QMutex::QMutex().
#define FXERRGNOTSUPP | ( | msg | ) |
#define FXERRGNF | ( | msg, | |||
flags | ) |
#define FXERRHIO | ( | exp | ) |
FXERRHIO(handle=open("foo.txt", O_CREAT));