Regina 7.0 Calculation Engine
|
An exception thrown when a function detects that its preconditions have been violated. More...
#include <utilities/exception.h>
Public Member Functions | |
FailedPrecondition (const std::string &msg) | |
FailedPrecondition (const char *msg) | |
FailedPrecondition (const FailedPrecondition &) noexcept=default | |
FailedPrecondition & | operator= (const FailedPrecondition &) noexcept=default |
An exception thrown when a function detects that its preconditions have been violated.
The line between failed preconditions and invalid input arguments is not always clear, and so the roles of FailedPrecondition versus InvalidArgument are not clear-cut. Where relevant, each routine will document clearly which exception type it uses.
All member functions follow the same pattern as the parent class ReginaException, and are not documented again here.