KASKADE 7 development version
Public Member Functions | List of all members
Kaskade::DetailedException Class Reference

A wrapper class for conveniently providing exceptions with context information. More...

#include <detailed_exception.hh>

Detailed Description

A wrapper class for conveniently providing exceptions with context information.

This is intended to be the base class for all runtime error exceptions in Kaskade, where runtime errors are understood as "unexpected situations that prevent the normal program flow and cannot be reliably prevented by careful programming". The prototypical case are I/O errors. Further examples may be the occurence of inconsistent data, or program failure due to unsuited user input.

Example:

throw DetailedException("Division by zero not defined",__FILE__,__LINE__);
DetailedException(std::string const &message, std::string const &file, int const line)

Definition at line 34 of file detailed_exception.hh.

Inheritance diagram for Kaskade::DetailedException:
Kaskade::GridException Kaskade::IOException Kaskade::IterativeSolverException Kaskade::LinearAlgebraException Kaskade::LookupException Kaskade::FileIOException Kaskade::InfeasibleProblemException Kaskade::LinesearchException Kaskade::UnboundedProblemException Kaskade::DirectSolverException Kaskade::NonpositiveMatrixException Kaskade::NonsquareMatrixException Kaskade::SingularMatrixException

Public Member Functions

 DetailedException (std::string const &message, std::string const &file, int const line)
 

Constructor & Destructor Documentation

◆ DetailedException()

Kaskade::DetailedException::DetailedException ( std::string const &  message,
std::string const &  file,
int const  line 
)
inline

Definition at line 36 of file detailed_exception.hh.


The documentation for this class was generated from the following file: