Core::Exception Class Reference

The base class for all exception types. More...

#include <Exception.hpp>

Inheritance diagram for Core::Exception:

Core::NotCopyable Core::NotImplException List of all members.

Public Member Functions

virtual ~Exception ()
 Destructor.
virtual const tcharWhat () const
 Get the exception details.

Protected Member Functions

 Exception ()
 Default constructor.
 Exception (const std::tstring &strDetails)
 Construction from a string containg the details.

Protected Attributes

std::tstring m_strDetails
 The error message.

Private Member Functions

virtual const char * what () const
 Get the ANSI only exception details.

Detailed Description

The base class for all exception types.

This class allows the error message to be ANSI or Unicode, unlike std::exception which is ANSI only. The ctor is protected as you should be throwing a specific derived exception type.


Constructor & Destructor Documentation

Core::Exception::~Exception (  )  [virtual]

Destructor.

Core::Exception::Exception (  )  [protected]

Default constructor.

Core::Exception::Exception ( const std::tstring strDetails  )  [protected]

Construction from a string containg the details.


Member Function Documentation

const tchar * Core::Exception::What (  )  const [virtual]

Get the exception details.

const char * Core::Exception::what (  )  const [private, virtual]

Get the ANSI only exception details.

This method is marked private to avoid it being called by accident instead of the build agnostic method What(). However it could still be invoked through the base class, so we still need to generate an ANSI version on demand.


Member Data Documentation

std::tstring Core::Exception::m_strDetails [protected]

The error message.


The documentation for this class was generated from the following files:
Generated on Wed Feb 13 22:53:28 2008 for Core Library by  doxygen 1.5.2