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 exceptionother () const throw ()
 
virtual const char * name () const throw ()
 
virtual exceptionclone () 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(), and exception::other().

◆ 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

Referenced by exception::chainException().


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