Alexandria  2.25.0
SDC-CH common library for the Euclid project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PythonExceptions.h
Go to the documentation of this file.
1 
18 #ifndef PYSTON_PYTHONEXCEPTIONS_H
19 #define PYSTON_PYTHONEXCEPTIONS_H
20 
21 #include <exception>
22 
23 namespace Pyston {
24 
31 public:
32 
38  explicit UnrecoverableError(const std::string& msg) : std::logic_error(msg) {}
39 
40  virtual ~UnrecoverableError() = default;
41 };
42 
49 public:
50  explicit RecoverableError(const std::string& msg) : std::logic_error(msg) {}
51  virtual ~RecoverableError() = default;
52 };
53 
54 } // namespace Pyston
55 
56 #endif // PYSTON_PYTHONEXCEPTIONS_H
UnrecoverableError(const std::string &msg)
virtual ~UnrecoverableError()=default
RecoverableError(const std::string &msg)
STL class.
virtual ~RecoverableError()=default
STL class.