roboptim::SolverError Class Reference

Base exception class for solving errors. All other exceptions classes concerning the optimization process should inherits this class. More...

#include <roboptim/core/solver-error.hh>

+ Inheritance diagram for roboptim::SolverError:

List of all members.

Public Member Functions

 SolverError (const std::string &arg) throw ()
 Instantiate an error from an error message.
virtual std::ostream & print (std::ostream &) const throw ()
 Display the error on the specified output stream.

Detailed Description

Base exception class for solving errors. All other exceptions classes concerning the optimization process should inherits this class.


Constructor & Destructor Documentation

roboptim::SolverError::SolverError ( const std::string &  arg) throw ()
explicit

Instantiate an error from an error message.

Parameters:
argerror message.

Member Function Documentation

std::ostream & roboptim::SolverError::print ( std::ostream &  o) const throw ()
virtual

Display the error on the specified output stream.

Parameters:
ooutput stream used for display
Returns:
output stream

Reimplemented in roboptim::SolverWarning.

Referenced by roboptim::operator<<().