ldas-tools-al  2.5.7
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
LDASTools::Error::unexpected_exception Class Reference

A class for capturing information about unexpected exceptions. More...

#include <unexpected_exception.hh>

Inherits bad_exception.

Public Member Functions

 unexpected_exception (const std::string &what, const std::string &1)
 Constructor. More...
 
 ~unexpected_exception () throw ()
 Destructor.
 
virtual const char * what () const throw ()
 The name of the bad exception. More...
 
const char *const return m_msg c_str ()
 The what() of the bad exception. More...
 

Detailed Description

A class for capturing information about unexpected exceptions.

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

Constructor & Destructor Documentation

LDASTools::Error::unexpected_exception::unexpected_exception ( const std::string &  what,
const std::string &  1 
)
inline

Constructor.

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

Member Function Documentation

const char* const return m_msg LDASTools::Error::unexpected_exception::c_str ( )

The what() of the bad exception.

ret: The what() of the bad exception

virtual const char* LDASTools::Error::unexpected_exception::what ( ) const
throw (
)
inlinevirtual

The name of the bad exception.

Returns the name of the exception thrown by the function which was not listed in the functions exception specification

ret: The name of the bad exception.


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