\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\)
exception#
View page sourceException Handling#
C++ Exceptions#
The type of the exception is std::runtime_error
which is derived from std::exception .
If the standard exception member function what() is called,
the return value is a message describing the error.
Python Exceptions#
The type of the exception is RuntimeError.
If err is the exception, str (err) is
a message describing the error.