SSAGES  0.8.5
Software Suite for Advanced General Ensemble Simulations
Public Member Functions | Private Attributes | List of all members
SSAGES::BuildException Class Reference

Exception to be thrown when building the Driver fails. More...

#include <DriverException.h>

Inheritance diagram for SSAGES::BuildException:
Inheritance graph
[legend]

Public Member Functions

 BuildException (std::vector< std::string > errors)
 Constructor. More...
 
virtual const char * what () const throw ()
 Get generic error message. More...
 
std::vector< std::string > GetErrors ()
 Get specific error message. More...
 

Private Attributes

std::vector< std::string > errors_
 Error message.
 

Detailed Description

Exception to be thrown when building the Driver fails.

Definition at line 39 of file DriverException.h.

Constructor & Destructor Documentation

SSAGES::BuildException::BuildException ( std::vector< std::string >  errors)
inline

Constructor.

Parameters
errorsError message

Definition at line 48 of file DriverException.h.

48  :
49  std::runtime_error("Object build error"), errors_(errors)
50  {
51  }
std::vector< std::string > errors_
Error message.

Member Function Documentation

std::vector<std::string> SSAGES::BuildException::GetErrors ( )
inline

Get specific error message.

Returns
Specific error message.

Definition at line 71 of file DriverException.h.

References errors_.

72  {
73  return errors_;
74  }
std::vector< std::string > errors_
Error message.
virtual const char* SSAGES::BuildException::what ( ) const
throw (
)
inlinevirtual

Get generic error message.

Returns
Generic error message.

Definition at line 57 of file DriverException.h.

58  {
59  std::ostringstream msg("");
60 
61  msg << runtime_error::what() << ": "
62  << "See errors for details.";
63 
64  return msg.str().c_str();
65  }

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