Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
GeneralException Class Reference

Exception with customizable message. More...

#include <Exceptions.hpp>

Inheritance diagram for GeneralException:
Collaboration diagram for GeneralException:

Public Member Functions

 GeneralException ()
 
 GeneralException (const std::string &msg)
 
virtual ~GeneralException () throw ()
 
virtual const char * what () const throw ()
 

Protected Attributes

const std::string message_
 The message that is to be printed.
 

Detailed Description

Exception with customizable message.

Use derived classes for specific exceptions.

Constructor & Destructor Documentation

GeneralException::GeneralException ( )
inline

Default Constructor

GeneralException::GeneralException ( const std::string &  msg)
inlineexplicit

Constructor for the general exception that accepts a message to print

Parameters
[in]msg: the message to print before killing the execution
virtual GeneralException::~GeneralException ( )
throw (
)
inlinevirtual

Destructor that throws the exception for us

Member Function Documentation

virtual const char* GeneralException::what ( ) const
throw (
)
inlinevirtual

Overloading of the what() method that outputs what the error was

Returns
the error

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