Regina 7.0 Calculation Engine
|
A base class for all of the exceptions that are thrown by Regina's native mathematical code. More...
#include <utilities/exception.h>
Public Member Functions | |
ReginaException (const std::string &msg) | |
Creates a new exception with the given error message. More... | |
ReginaException (const char *msg) | |
Creates a new exception with the given error message. More... | |
ReginaException (const ReginaException &) noexcept=default | |
Creates a new copy of the given exception. More... | |
ReginaException & | operator= (const ReginaException &) noexcept=default |
Sets this to be a copy of the given exception. More... | |
A base class for all of the exceptions that are thrown by Regina's native mathematical code.
This does not include SnapPeaFatalError and SnapPeaMemoryFull, which represent critical errors thrown from within the SnapPea kernel; it also does not include SnapshotWriteError, which is part of the generic (non-mathematical) snapshotting machinery.
Details of the error can be accessed through the inherited member function what().
|
inline |
Creates a new exception with the given error message.
This constructor may throw std::bad_alloc.
msg | a human-readable description of the error. |
|
inline |
Creates a new exception with the given error message.
This constructor may throw std::bad_alloc.
msg | a human-readable description of the error. |
|
defaultnoexcept |
Creates a new copy of the given exception.
|
defaultnoexcept |
Sets this to be a copy of the given exception.