BLOCXX_NAMESPACE::AssertionException Class Reference

#include <Assertion.hpp>

Inheritance diagram for BLOCXX_NAMESPACE::AssertionException:

BLOCXX_NAMESPACE::Exception List of all members.

Public Member Functions

 AssertionException (const char *file, int line, const char *msg, int errorCode=::BLOCXX_NAMESPACE::Exception::UNKNOWN_ERROR_CODE, const Exception *otherException=0, int subClassId=::BLOCXX_NAMESPACE::Exception::UNKNOWN_SUBCLASS_ID)
virtual ~AssertionException () throw ()
virtual const char * type () const
 Returns a string representing the concrete type.
virtual AssertionExceptionclone () const
 Make a copy of this exception object.

Detailed Description

Definition at line 46 of file Assertion.hpp.


Constructor & Destructor Documentation

BLOCXX_NAMESPACE::AssertionException::AssertionException const char *  file,
int  line,
const char *  msg,
int  errorCode = ::BLOCXX_NAMESPACE::Exception::UNKNOWN_ERROR_CODE,
const Exception otherException = 0,
int  subClassId = ::BLOCXX_NAMESPACE::Exception::UNKNOWN_SUBCLASS_ID
 

BLOCXX_NAMESPACE::AssertionException::~AssertionException  )  throw () [virtual]
 

Definition at line 44 of file Assertion.cpp.


Member Function Documentation

AssertionException * BLOCXX_NAMESPACE::AssertionException::clone  )  const [virtual]
 

Make a copy of this exception object.

If allocation fails, return 0. Subclasses need to override this function. This function must not throw. Here is an example of how to implement this in a derived class:

virtual DerivedException* clone() const { return new(std::nothrow) DerivedException(*this); }

Reimplemented from BLOCXX_NAMESPACE::Exception.

Definition at line 44 of file Assertion.cpp.

const char * BLOCXX_NAMESPACE::AssertionException::type  )  const [virtual]
 

Returns a string representing the concrete type.

e.g. "SocketException". Will not return 0. This function will not throw. Derived class implementations must not throw.

Reimplemented from BLOCXX_NAMESPACE::Exception.

Definition at line 44 of file Assertion.cpp.


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 15:39:10 2006 for blocxx by  doxygen 1.4.6