CYCLUS
Loading...
Searching...
No Matches
cyclus::Error Class Reference

Detailed Description

A generic mechanism to manually manage exceptions.

Definition at line 12 of file error.h.

#include <error.h>

Inheritance diagram for cyclus::Error:
cyclus::CastError cyclus::DepricationError cyclus::IOError cyclus::KeyError cyclus::StateError cyclus::ValidationError cyclus::ValueError

Public Member Functions

 Error ()
 
 Error (std::string msg)
 
std::string msg () const
 
void msg (std::string msg)
 
virtual const charwhat () const throw ()
 
virtual ~Error () throw ()
 

Protected Attributes

std::string msg_
 

Constructor & Destructor Documentation

◆ Error() [1/2]

cyclus::Error::Error ( )

Constructs a new Error with the default message.

◆ Error() [2/2]

cyclus::Error::Error ( std::string msg)

Constructs a new Error with a provided message.

Definition at line 6 of file error.cc.

◆ ~Error()

virtual cyclus::Error::~Error ( )
throw ( )
inlinevirtual

Definition at line 33 of file error.h.

Member Function Documentation

◆ msg() [1/2]

std::string cyclus::Error::msg ( ) const
inline

Returns the error message associated with this Error.

Definition at line 24 of file error.h.

◆ msg() [2/2]

void cyclus::Error::msg ( std::string msg)
inline

sets the error message

Definition at line 29 of file error.h.

◆ what()

const char * cyclus::Error::what ( ) const
throw ( )
virtual

Returns the error message associated with this Error.

Definition at line 9 of file error.cc.

Member Data Documentation

◆ msg_

std::string cyclus::Error::msg_
protected

The message associated with this exception.

Definition at line 37 of file error.h.


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