.. _program_listing_file__tmp_ws_src_ecl_core_ecl_filesystem_include_ecl_filesystem_errors.hpp: Program Listing for File errors.hpp =================================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/ecl_core/ecl_filesystem/include/ecl/filesystem/errors.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp /***************************************************************************** ** Ifdefs *****************************************************************************/ #ifndef ECL_TIME_LITE_ERRORS_HPP_ #define ECL_TIME_LITE_ERRORS_HPP_ /***************************************************************************** ** Includes *****************************************************************************/ #include #include #include "macros.hpp" /***************************************************************************** ** Namespaces *****************************************************************************/ namespace ecl { class ecl_time_lite_PUBLIC TimeError : public Error { public: TimeError(const ErrorFlag& flag = UnknownError) : Error(flag) {} protected: virtual const char* outOfRangeErrorString() { return "The input time sec/nsec pair was outside of the permitted range."; } virtual const char* argNotSupportedErrorString() { return "The clock specified is not supported on this system."; } virtual const char* permissionsErrorString() { return "You do not have permission to set the specified clock."; } virtual const char* memoryErrorString() { return "One of the input arguments is not in memory addressable space."; } virtual const char* interruptedErrorString() { return "This operation was interrupted by a signal."; } }; } // namespace ecl #endif /* ECL_TIME_LITE_ERRORS_HPP_ */