SSAGES  0.1
A MetaDynamics Package
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
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 38 of file DriverException.h.

Constructor & Destructor Documentation

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

Constructor.

Parameters
errorsError message

Definition at line 47 of file DriverException.h.

47  :
48  std::runtime_error("Object build error"), errors_(errors)
49  {
50  }
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 70 of file DriverException.h.

References errors_.

71  {
72  return errors_;
73  }
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 56 of file DriverException.h.

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

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