SSAGES  0.9.3
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 40 of file DriverException.h.

Constructor & Destructor Documentation

◆ BuildException()

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

Constructor.

Parameters
errorsError message

Definition at line 49 of file DriverException.h.

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

Member Function Documentation

◆ GetErrors()

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

Get specific error message.

Returns
Specific error message.

Definition at line 72 of file DriverException.h.

73  {
74  return errors_;
75  }

References errors_.

◆ what()

virtual const char* SSAGES::BuildException::what ( ) const
throw (
)
inlinevirtual

Get generic error message.

Returns
Generic error message.

Definition at line 58 of file DriverException.h.

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

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