10 #ifndef _STRUS_BASE_ERROR_BUFFER_INTERFACE_HPP_INCLUDED
11 #define _STRUS_BASE_ERROR_BUFFER_INTERFACE_HPP_INCLUDED
52 virtual void report(
int errorcode,
const char* format, ...)
54 __attribute__ ((format (printf, 3, 4)))
60 virtual void explain(
const char* format)=0;
ErrorClass
Definition: errorBufferInterface.hpp:27
Interface for reporting debug trace messages in a uniform way.
virtual void releaseContext()=0
Dellocate context for current thread.
virtual void report(int errorcode, const char *format,...)=0
Report an error.
memory allocation error
Definition: errorBufferInterface.hpp:31
virtual bool hasError() const =0
Check, if an error has occurred.
virtual void explain(const char *format)=0
Report an error, overwriting the previous error.
Managing interface for reporting debug trace messages in a uniform way.
Definition: debugTraceInterface.hpp:81
virtual const char * fetchError()=0
Check, if an error has occurred and return it.
runtime error
Definition: errorBufferInterface.hpp:30
Interface for reporting and catching errors in modules.
Definition: errorBufferInterface.hpp:24
virtual void allocContext()=0
Allocate context for current thread.
virtual ~ErrorBufferInterface()
Destructor.
Definition: errorBufferInterface.hpp:35
virtual void setLogFile(FILE *hnd)=0
Define error log file.
Structured error codes for strus components.
no error
Definition: errorBufferInterface.hpp:29
virtual DebugTraceInterface * debugTrace() const =0
Fetches the debug trace interface if defined.
virtual bool setMaxNofThreads(unsigned int maxNofThreads)=0
Redefine the maximum number of threads using the error buffer.