Logo Search packages:      
Sourcecode: poco version File versions  Download package

Public Member Functions | Protected Member Functions | Private Attributes

Poco::Exception Class Reference

#include <Exception.h>

Collaboration diagram for Poco::Exception:
Collaboration graph

List of all members.

Public Member Functions

virtual const char * className () const throw ()
 Returns a static string describing the exception.
virtual Exceptionclone () const
int code () const
 Returns the message text.
std::string displayText () const
 Returns the exception code if defined.
 Exception (const std::string &msg, int code=0)
 Exception (const std::string &msg, const std::string &arg, int code=0)
 Creates an exception.
 Exception (const Exception &exc)
 Exception (const std::string &msg, const Exception &nested, int code=0)
 Creates an exception.
const std::string & message () const
virtual const char * name () const throw ()
 Assignment operator.
const Exceptionnested () const
Exceptionoperator= (const Exception &exc)
 Destroys the exception and deletes the nested exception.
virtual void rethrow () const
virtual const char * what () const throw ()
 Returns the name of the exception class.
 ~Exception () throw ()
 Copy constructor.

Protected Member Functions

 Exception (int code=0)
void extendedMessage (const std::string &arg)
 Sets the message for the exception.
void message (const std::string &msg)
 Standard constructor.

Private Attributes

int _code
std::string _msg
 Sets the extended message for the exception.

Detailed Description

This is the base class for all exceptions defined in the Poco class library.

Definition at line 50 of file Exception.h.

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

Generated by  Doxygen 1.6.0   Back to index