Class Index Cross Index Namespace Index

Class General::unexpected_exception

A class for capturing information about unexpected exceptions
Contained in: General
Derived from: std::bad_exception
Derived by: none

#include "general/unexpected_exception.hh"


public function member index:

unexpected_exception(const std::string& what, const std::string& msg); Constructor
~unexpected_exception() throw ( ); Destructor
const char* msg() const; The what() of the bad exception
virtual const char* what() const throw ( ); The name of the bad exception
 

Description:

This class is intended to be thrown whenever a bad exception specification is encountered. This will happen if a function throws an exception that isn't listed in its exception specification


Function Member Descriptions:


General::unexpected_exception::unexpected_exception - Constructor


unexpected_exception(const std::string& what, const std::string& msg);

Parameters:
ParameterDescription
whatThe name of the exception that was bad eg. runtime_error
msgThe what() of the original exception



General::unexpected_exception::~unexpected_exception - Destructor


~unexpected_exception() throw ( );



General::unexpected_exception::msg - The what() of the bad exception


const char* msg() const;



General::unexpected_exception::what - The name of the bad exception


virtual const char* what() const throw ( );
Returns the name of the exception thrown by the function which was not listed in the functions exception specification




Variable Member Descriptions:


General::unexpected_exception::m_msg -

std::string m_msg;

General::unexpected_exception::m_what -

std::string m_what;