Provides c++ mechanisms for handling posix errors. More...
#include <posix_error_handler.hpp>
Public Member Functions | |
virtual | ~PosixErrorHandler () |
Static Public Member Functions | |
static StandardException | GenerateStandardException (const char *loc) |
Provides c++ mechanisms for handling posix errors.
This class is a parent template for handling posix errors thrown by a generic base class. Currently it only serves one purpose, that is to redirect posix errors generated via the errno mechanism to StandardException objects. If you wish to customise the output of posix errors for different objects then simply specialise this class for the given object. See PosixErrorHandler<ecl::time::TimeStamp> for an example specialisation.
Definition at line 58 of file posix_error_handler.hpp.
|
inlinevirtual |
Definition at line 72 of file posix_error_handler.hpp.
|
inlinestatic |
This static function is the general case response for generating StandardException objects from a posix errno value using the c strerror() function. To customise the response, specialise this class for the required object. See PosixErrorHandler<ecl::time::TimeStamp> for an example specialisation.
loc | : use with the LOC macro, identifies the line and file of the code. |
Definition at line 69 of file posix_error_handler.hpp.