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 Member Functions

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

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

Exceptionoperator= (const Exception &other)
 Perform an assignment.

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

SourceLine sourceLine () const
 Location where the error occured.

virtual Exceptionclone () const
virtual bool isInstanceOf (const Type &type) const

Static Public Member Functions

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