src/libs/alibxx/chrono/chrono_exception.hpp
raw| 1 | #pragma once |
| 2 | |
| 3 | #include <iostream> |
| 4 | |
| 5 | |
| 6 | namespace A_LIB_NAMESPACE{ |
| 7 | |
| 8 | class ChronoException: public std::exception{ |
| 9 | public: |
| 10 | ChronoException(const std::string & str) : message(str){} |
| 11 | virtual ~ChronoException() throw(){} |
| 12 | |
| 13 | virtual const char* what() const throw(){ |
| 14 | return message.c_str(); |
| 15 | } |
| 16 | |
| 17 | private: |
| 18 | std::string message; |
| 19 | }; |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | } |