12#ifndef DETAILED_EXCEPTION_HH
13#define DETAILED_EXCEPTION_HH
17#include <boost/lexical_cast.hpp>
37 std::runtime_error(std::string(
"Exception in ") + file +
" at line " +
boost::lexical_cast<std::string>(line) +
".\n" + message)
49 IOException(std::string
const& message, std::string
const& file,
int const line) :
62 FileIOException(std::string
const& message, std::string
const& filename_, std::string
const& file,
int const line) :
63 IOException(std::string(
"File I/O exception for file ") + filename_ +
".\n" + message,file,line),
filename(filename_)
77 LookupException (std::string
const& message, std::string
const& file,
int const line):
95 std::string
const& file,
int const line):
96 DetailedException(std::string(
"Argument ") + std::to_string(argno) +
"has illegal value:\n"
228 GridException(std::string
const& message, std::string
const& file,
int const line) :
ArgumentValueException(int argno, std::string const &message, std::string const &file, int const line)
DetailedException(std::string const &message, std::string const &file, int const line)
DirectSolverException(std::string const &message, std::string const &file, int const line)
FileIOException(std::string const &message, std::string const &filename_, std::string const &file, int const line)
GridException(std::string const &message, std::string const &file, int const line)
IOException(std::string const &message, std::string const &file, int const line)
InfeasibleProblemException(std::string const &message, std::string const &file, int const line)
IterativeSolverException(std::string const &message, std::string const &file, int const line)
LinearAlgebraException(std::string const &message, std::string const &file, int const line)
LinesearchException(std::string const &message, std::string const &file, int const line)
LookupException(std::string const &message, std::string const &file, int const line)
NonpositiveMatrixException(std::string const &message, std::string const &file, int const line)
NonsquareMatrixException(std::string const &message, std::string const &file, int const line)
SingularMatrixException(std::string const &message, std::string const &file, int const line)
UnboundedProblemException(std::string const &message, std::string const &file, int const line)