time_lite/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 
34 class ecl_time_lite_PUBLIC TimeError : public Error {
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_ */
ErrorFlag
UnknownError
#define ecl_time_lite_PUBLIC


xbot_driver
Author(s): Roc, wangpeng@droid.ac.cn
autogenerated on Sat Oct 10 2020 03:27:37