Derives from std::runtime_error so it interoperates with C++ code that catches std::exception — that inheritance is a C++ implementation detail and is not visible from cheatah, where an Error is an ordinary value with two string fields.
Functions
Error · 2 overloads
An unclassified error — what raise "msg" builds.
Kind is kErrorKindError.
message | the human-readable description. |
O(message).
copies the message (twice: the base class keeps its own).
PurrcPipeline.CompilesAndRunsTryExceptRaiseWhat CLASS of failure this is — the string except … of matches against.
the kind, by const reference; never empty for an Error built through these constructors.
O(1).
none.
The human-readable description.
This is also what str and operator<< yield, so a caught error prints as its message rather than as a struct.
the message, by const reference.
O(1).
none.
