CVR-Lib last update 20 Sep 2009

cvr::exception Class Reference

Base class for all CVR-Libexceptions. More...

#include <cvrException.h>

Inheritance diagram for cvr::exception:

Inheritance graph
[legend]
Collaboration diagram for cvr::exception:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 exception (const char *excName="exception")
 exception (const std::string &excName)
 exception (const exception &other)
virtual ~exception () throw ()
virtual const std::string & name () const
virtual const char * what () const throw ()
exceptioncopy (const exception &other)
virtual exceptionclone () const
virtual exceptionnewInstance () const
exceptionoperator= (const exception &other)

Protected Attributes

std::string exceptionName_


Detailed Description

Base class for all CVR-Libexceptions.

Constructor & Destructor Documentation

cvr::exception::exception ( const char *  excName = "exception"  ) 

Constructor with an optional string.

Parameters:
excName name of the exception. These string will be copied and can be accessed with the "what()" method

cvr::exception::exception ( const std::string &  excName  ) 

Constructor with an optional string.

Parameters:
excName name of the exception. These string will be copied and can be accessed with the "what()" method

cvr::exception::exception ( const exception other  ) 

Copy constructor.

virtual cvr::exception::~exception (  )  throw () [virtual]

Destructor.


Member Function Documentation

virtual exception* cvr::exception::clone (  )  const [virtual]

exception& cvr::exception::copy ( const exception other  ) 

Copy member.

virtual const std::string& cvr::exception::name (  )  const [virtual]

Returns the name of this type.

Implements cvr::object.

Reimplemented in cvr::allocException, cvr::constReferenceException, and cvr::invalidParametersException.

virtual exception* cvr::exception::newInstance (  )  const [virtual]

Create new instance of this object.

Implements cvr::object.

Reimplemented in cvr::allocException, cvr::constReferenceException, and cvr::invalidParametersException.

exception& cvr::exception::operator= ( const exception other  ) 

Alias for copy operator.

virtual const char* cvr::exception::what (  )  const throw () [virtual]

Exception string.

Returns:
The internal string with the information set at construction time.


Member Data Documentation

std::string cvr::exception::exceptionName_ [protected]

The exception message.

This string will be returned with the method what() and is set at construction time.


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

Generated on Sun Sep 20 22:08:39 2009 for CVR-Lib by Doxygen 1.5.8