errors.hpp
Go to the documentation of this file.
1 
10 /*****************************************************************************
11 ** Ifdefs
12 *****************************************************************************/
13 
14 #ifndef ECL_TIME_LITE_ERRORS_HPP_
15 #define ECL_TIME_LITE_ERRORS_HPP_
16 
17 /*****************************************************************************
18 ** Includes
19 *****************************************************************************/
20 
21 #include <ecl/errors/handlers.hpp>
22 #include <ecl/config/macros.hpp>
23 #include "macros.hpp"
24 
25 /*****************************************************************************
26 ** Namespaces
27 *****************************************************************************/
28 
29 namespace ecl {
30 
35 public:
41  TimeError(const ErrorFlag& flag = UnknownError) : Error(flag) {}
42 protected:
43  virtual const char* outOfRangeErrorString() { return "The input time sec/nsec pair was outside of the permitted range."; }
44  virtual const char* argNotSupportedErrorString() { return "The clock specified is not supported on this system."; }
45  virtual const char* permissionsErrorString() { return "You do not have permission to set the specified clock."; }
46  virtual const char* memoryErrorString() { return "One of the input arguments is not in memory addressable space."; }
47  virtual const char* interruptedErrorString() { return "This operation was interrupted by a signal."; }
48 };
49 
50 } // namespace ecl
51 
52 #endif /* ECL_TIME_LITE_ERRORS_HPP_ */
virtual const char * permissionsErrorString()
Definition: errors.hpp:45
TimeError(const ErrorFlag &flag=UnknownError)
Configures the error class with the specified error flag.
Definition: errors.hpp:41
Extends the generic ecl error handler with some time specific error strings.
Definition: errors.hpp:34
#define ecl_time_lite_PUBLIC
Definition: macros.hpp:37
UnknownError
virtual const char * outOfRangeErrorString()
Definition: errors.hpp:43
virtual const char * argNotSupportedErrorString()
Definition: errors.hpp:44
virtual const char * memoryErrorString()
Definition: errors.hpp:46
virtual const char * interruptedErrorString()
Definition: errors.hpp:47


ecl_time_lite
Author(s): Daniel Stonier
autogenerated on Mon Feb 28 2022 22:16:13