te::common::LoggedException Class Reference

A class that automatically logs the exception message. More...

#include <LoggedException.h>

Inheritance diagram for te::common::LoggedException:
te::common::Exception

Public Member Functions

virtual int code () const throw ()
 It gets the exception code. More...
 
virtual const char * getClassName () const throw ()
 It return the exception class name. More...
 
 LoggedException (const std::string &what) throw ()
 It initializes a new LoggedException. More...
 
 LoggedException (const char *const what) throw ()
 It initializes a new LoggedException. More...
 
virtual const char * what () const throw ()
 It outputs the exception message. More...
 
virtual ~LoggedException () throw ()
 Destructor. More...
 

Protected Attributes

int m_code
 The internal exception code. More...
 
std::string m_msg
 The internal exception message. More...
 

Detailed Description

A class that automatically logs the exception message.

Definition at line 43 of file LoggedException.h.

Constructor & Destructor Documentation

te::common::LoggedException::LoggedException ( const std::string &  what)
throw (
)
explicit

It initializes a new LoggedException.

Parameters
whatA brief description of what has raised the exception.
te::common::LoggedException::LoggedException ( const char *const  what)
throw (
)
explicit

It initializes a new LoggedException.

Parameters
whatA brief description of what has raised the exception.
virtual te::common::LoggedException::~LoggedException ( )
throw (
)
virtual

Destructor.

Member Function Documentation

virtual int te::common::Exception::code ( ) const
throw (
)
virtualinherited

It gets the exception code.

Returns
The exception code.
virtual const char* te::common::LoggedException::getClassName ( ) const
throw (
)
virtual

It return the exception class name.

Returns
the exception class name.

Reimplemented from te::common::Exception.

virtual const char* te::common::Exception::what ( ) const
throw (
)
virtualinherited

It outputs the exception message.

Returns
The exception message.

Member Data Documentation

int te::common::Exception::m_code
protectedinherited

The internal exception code.

Definition at line 105 of file Exception.h.

std::string te::common::Exception::m_msg
protectedinherited

The internal exception message.

Definition at line 106 of file Exception.h.


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