Public Member Functions | Protected Attributes | List of all members
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 char * what () const throw ()
virtual ~Error () throw ()

Protected Attributes

std::string msg_

Constructor & Destructor Documentation

cyclus::Error::Error ( )

Constructs a new Error with the default message.

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

Constructs a new Error with a provided message.

Definition at line 6 of file

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

Definition at line 33 of file error.h.

Member Function Documentation

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

Returns the error message associated with this Error.

Definition at line 24 of file error.h.

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

sets the error message

Definition at line 29 of file error.h.

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

Returns the error message associated with this Error.

Definition at line 9 of file

Member Data Documentation

std::string cyclus::Error::msg_

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: