|
strusBase
0.17
|
Error buffer implementation for a context transforming the error message into an exceptions at the end of its scope. More...
#include <localErrorBuffer.hpp>
Public Member Functions | |
| LocalErrorBuffer () | |
| virtual | ~LocalErrorBuffer () |
| virtual void | setLogFile (FILE *) |
| Define error log file. More... | |
| virtual bool | setMaxNofThreads (unsigned int) |
| Redefine the maximum number of threads using the error buffer. More... | |
| virtual void | report (int errorcode, const char *format,...) |
| Report an error. More... | |
| virtual void | explain (const char *format) |
| Report an error, overwriting the previous error. More... | |
| virtual const char * | fetchError () |
| Check, if an error has occurred and return it. More... | |
| virtual bool | hasError () const |
| Check, if an error has occurred. More... | |
| virtual void | allocContext () |
| Allocate context for current thread. More... | |
| virtual void | releaseContext () |
| Dellocate context for current thread. More... | |
| virtual DebugTraceInterface * | debugTrace () const |
| Fetches the debug trace interface if defined. More... | |
| int | errorCode () const |
Public Member Functions inherited from strus::ErrorBufferInterface | |
| virtual | ~ErrorBufferInterface () |
| Destructor. More... | |
Additional Inherited Members | |
Public Types inherited from strus::ErrorBufferInterface | |
| enum | ErrorClass { None, RuntimeError, BadAlloc } |
Error buffer implementation for a context transforming the error message into an exceptions at the end of its scope.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Allocate context for current thread.
Implements strus::ErrorBufferInterface.
|
inlinevirtual |
Fetches the debug trace interface if defined.
Implements strus::ErrorBufferInterface.
|
inline |
|
inlinevirtual |
Report an error, overwriting the previous error.
| [in] | format | error message format string |
Implements strus::ErrorBufferInterface.
|
inlinevirtual |
Check, if an error has occurred and return it.
Implements strus::ErrorBufferInterface.
|
inlinevirtual |
Check, if an error has occurred.
Implements strus::ErrorBufferInterface.
|
inlinevirtual |
Dellocate context for current thread.
Implements strus::ErrorBufferInterface.
|
inlinevirtual |
Report an error.
| [in] | errorcode | error code of the error (errno and beyond) |
| [in] | format | error message format string |
Implements strus::ErrorBufferInterface.
|
inlinevirtual |
Define error log file.
| [in] | hnd | file handle to set as log file |
Implements strus::ErrorBufferInterface.
|
inlinevirtual |
Redefine the maximum number of threads using the error buffer.
| [in] | maxNofThreads | number of threads |
Implements strus::ErrorBufferInterface.
1.8.6