Exceptions¶
Exceptions are located in the file likelihood/errors.h.
-
class Root : public std::exception¶
All explicit HJCFIT exception derive from this, for easy catching,.
Subclassed by HJCFIT::errors::Index, HJCFIT::errors::Math, HJCFIT::errors::NotImplemented, HJCFIT::errors::Python, HJCFIT::errors::Runtime
General¶
-
class NotImplemented : public HJCFIT::errors::Root¶
NotImplemented error which carries a message.
Math¶
-
class Math : public HJCFIT::errors::Root¶
Math (convergence, domain, etc) error.
Subclassed by HJCFIT::errors::Domain, HJCFIT::errors::Mass
-
class Mass : public HJCFIT::errors::Math¶
Math error which carries a message.
Subclassed by HJCFIT::errors::ComplexEigenvalues, HJCFIT::errors::MaxIterations, HJCFIT::errors::NaN
-
class Domain : public HJCFIT::errors::Math, public virtual std::domain_error¶
Input error to a math problem.
Subclassed by HJCFIT::errors::NotInvertible
Python¶
-
class Python : public HJCFIT::errors::Root¶
Exception thrown in python modules.
Subclassed by HJCFIT::errors::PythonErrorAlreadyThrown, HJCFIT::errors::PythonTypeError, HJCFIT::errors::PythonValueError
-
class PythonErrorAlreadyThrown : public HJCFIT::errors::Python¶
Exception was thrown by python API.
This is a convenience exception that can be thrown when a python api has set an error. It allows us to easily escape from the current scope, while keeping the python exception as it is.