16 |
#define USATA_EXCEPTION_TYPES_HPP |
#define USATA_EXCEPTION_TYPES_HPP |
17 |
|
|
18 |
#include <exception> |
#include <exception> |
19 |
|
#include <stdexcept> |
20 |
#include <string> |
#include <string> |
21 |
|
|
22 |
namespace usata |
namespace usata |
23 |
{ |
{ |
24 |
|
|
25 |
|
namespace exceptions |
26 |
|
{ |
27 |
|
|
28 |
class RecoverableError : public std::runtime_error |
class RecoverableError : public std::runtime_error |
29 |
{ |
{ |
30 |
public: |
public: |
41 |
virtual const char*what()const throw()=0; |
virtual const char*what()const throw()=0; |
42 |
virtual ~FatalError()throw(){} |
virtual ~FatalError()throw(){} |
43 |
}; |
}; |
44 |
|
} |
45 |
} |
} |
46 |
|
|
47 |
#endif |
#endif |