VMime
exception Class Reference
Inheritance diagram for exception:
Collaboration diagram for exception:

Public Member Functions

 exception (const string &what, const exception &other=NO_EXCEPTION)
 
 exception (const exception &e)
 
virtual ~exception () throw ()
 
void chainException (const exception &other)
 
const exception * other () const throw ()
 
virtual const char * name () const throw ()
 
virtual exception * clone () const
 

Detailed Description

Base class for VMime exceptions.

Constructor & Destructor Documentation

◆ exception() [1/2]

exception ( const string &  what,
const exception &  other = NO_EXCEPTION 
)

◆ exception() [2/2]

exception ( const exception &  e)

◆ ~exception()

~exception ( )
throw (
)
virtual

Member Function Documentation

◆ chainException()

void chainException ( const exception &  other)

Chain the specified exception with this exception.

Parameters
othernext exception in the chain

References exception::clone().

◆ clone()

◆ name()

◆ other()

const exception * other ( ) const
throw (
)

Return the next exception in the chain, that is the exception that caused this exception.

This permits nesting exceptions.

Returns
next exception in the chain

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