Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
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
23namespace Pyston {
24
31public:
32
38 explicit UnrecoverableError(const std::string& msg) : std::logic_error(msg) {}
39
40 virtual ~UnrecoverableError() = default;
41};
42
49public:
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
RecoverableError(const std::string &msg)
virtual ~RecoverableError()=default
virtual ~UnrecoverableError()=default
UnrecoverableError(const std::string &msg)
STL namespace.