CppUnit project page FAQ CppUnit home page

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

CppUnit::Exception Class Reference
[Browsing collected test result]

Exceptions thrown by failed assertions. More...

#include <Exception.h>

Inheritance diagram for CppUnit::Exception:

CppUnit::NotEqualException List of all members.

Public Methods

 Exception (std::string message="", SourceLine sourceLine=SourceLine())
 Exception (const Exception &other)
 Construct the exception. More...

virtual ~Exception () throw ()
 Destruct the exception. More...

Exception & operator= (const Exception &other)
 Perform an assignment. More...

const char * what () const throw ()
 Return descriptive message. More...

SourceLine sourceLine () const
 Location where the error occured. More...

virtual Exception * clone () const
virtual bool isInstanceOf (const Type &type) const

Static Public Methods

Type type ()

Private Types

typedef std::exception SuperClass

Private Attributes

std::string m_message
SourceLine m_sourceLine

Detailed Description

Exceptions thrown by failed assertions.

Exception is an exception that serves descriptive strings through its what() method


Member Typedef Documentation

typedef std::exception CppUnit::Exception::SuperClass [private]
 


Constructor & Destructor Documentation

CppUnit::Exception::Exception std::string    message = "",
SourceLine    sourceLine = SourceLine()
 

Deprecated:
Use other constructor instead.

CppUnit::Exception::Exception const Exception &    other
 

Construct the exception.

CppUnit::Exception::~Exception   throw () [virtual]
 

Destruct the exception.


Member Function Documentation

Exception * CppUnit::Exception::clone   const [virtual]
 

Reimplemented in CppUnit::NotEqualException.

bool CppUnit::Exception::isInstanceOf const Type   type const [virtual]
 

Reimplemented in CppUnit::NotEqualException.

Exception & CppUnit::Exception::operator= const Exception &    other
 

Perform an assignment.

SourceLine CppUnit::Exception::sourceLine   const
 

Location where the error occured.

Exception::Type CppUnit::Exception::type   [static]
 

Reimplemented in CppUnit::NotEqualException.

const char * CppUnit::Exception::what   const throw ()
 

Return descriptive message.


Member Data Documentation

std::string CppUnit::Exception::m_message [private]
 

SourceLine CppUnit::Exception::m_sourceLine [private]
 


The documentation for this class was generated from the following files:
SourceForge Logo hosts this site. Send comments to:
CppUnit Developers