ldas-tools-al  2.5.7
Public Member Functions | Public Attributes | 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...
 

Public Attributes

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

◆ unexpected_exception()

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

◆ what()

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.

Member Data Documentation

◆ const

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

The what() of the bad exception.

ret: The what() of the bad exception


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