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

Warning with customizable message. More...

#include <Exceptions.hpp>

Inheritance diagram for GeneralWarning:
Collaboration diagram for GeneralWarning:

Public Member Functions

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

Protected Attributes

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

Detailed Description

Warning with customizable message.

Use derived classes for specific events. Although looks exactly like GeneralExceptions, the difference is that warnings are meant to be gently caught without aborting the program execution.

Constructor & Destructor Documentation

GeneralWarning::GeneralWarning ( )
inline

Default Constructor

GeneralWarning::GeneralWarning ( 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 GeneralWarning::~GeneralWarning ( )
throw (
)
inlinevirtual

Destructor that throws the exception for us

Member Function Documentation

virtual const char* GeneralWarning::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: