The primary error handler for ecl libraries. More...
#include <handlers.hpp>
Public Member Functions | |
Error (const ErrorFlag &flag=UnknownError) | |
Configure the return type with an error flag. More... | |
virtual ErrorFlag | flag () const |
The flag identifying the error identified with this error handler. More... | |
virtual void | operator= (const ErrorFlag &error) |
virtual void | print (const char *loc) |
Print a location dependent message to standard out. More... | |
virtual const char * | what () const |
A simple string verbosely representing the error that is handled. More... | |
virtual | ~Error () |
Protected Member Functions | |
virtual const char * | argNotSupportedErrorString () const |
virtual const char * | blockingErrorString () const |
virtual const char * | busyErrorString () const |
virtual const char * | closeErrorString () const |
virtual const char * | configurationErrorString () const |
virtual const char * | connectErrorString () const |
virtual const char * | connectionRefusedString () const |
virtual const char * | constructorErrorString () const |
virtual const char * | conversionErrorString () const |
virtual const char * | destructorErrorString () const |
virtual const char * | interruptedErrorString () const |
virtual const char * | invalidArgErrorString () const |
virtual const char * | invalidObjectErrorString () const |
virtual const char * | isLockedErrorString () const |
virtual const char * | isTimeOutErrorString () const |
virtual const char * | memoryErrorString () const |
virtual const char * | noErrorString () const |
virtual const char * | notFoundErrorString () const |
virtual const char * | notInitialisedErrorString () const |
virtual const char * | notSupportedErrorString () const |
virtual const char * | openErrorString () const |
virtual const char * | outOfRangeErrorString () const |
virtual const char * | outOfResourcesErrorString () const |
virtual const char * | permissionsErrorString () const |
virtual const char * | raiiErrorString () const |
virtual const char * | readErrorString () const |
virtual const char * | systemFailureErrorString () const |
virtual const char * | unknownErrorString () const |
virtual const char * | usageErrorString () const |
virtual const char * | writeErrorString () const |
Protected Attributes | |
ErrorFlag | error_flag |
The primary error handler for ecl libraries.
This class is mostly used as the return type for ecl functions to indicate errors.
Alternatively the class can be inherited and the verbose messages overloaded. Refer to the TimeError class in ecl_time_lite for an example.
Definition at line 64 of file handlers.hpp.
|
inline |
Configure the return type with an error flag.
flag | : the type of error that is to be returned. |
Definition at line 77 of file handlers.hpp.
|
inlinevirtual |
Definition at line 78 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 168 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 173 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 170 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 157 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 159 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 160 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 179 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 153 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 155 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 154 of file handlers.hpp.
|
inlinevirtual |
The flag identifying the error identified with this error handler.
Definition at line 84 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 172 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 158 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 175 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 176 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 177 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 165 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 151 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 178 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 163 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 169 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 156 of file handlers.hpp.
|
inlinevirtual |
Definition at line 85 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 152 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 171 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 164 of file handlers.hpp.
|
inlinevirtual |
Print a location dependent message to standard out.
Usage:
loc | : use with the LOC macro. |
Definition at line 106 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 167 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 161 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 174 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 180 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 166 of file handlers.hpp.
|
inlinevirtual |
A simple string verbosely representing the error that is handled.
Definition at line 115 of file handlers.hpp.
|
inlineprotectedvirtual |
Definition at line 162 of file handlers.hpp.
|
protected |
Definition at line 182 of file handlers.hpp.