VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtException Class Reference

DtException is the generic MAK Exception from which all other Exceptions thrown by MAK products are derived. More...

+ Inheritance diagram for DtException:
+ Collaboration diagram for DtException:

Public Member Functions

 DtException (const char *errorMessage, const DtException *previousException=0) throw ()
 Default CTOR takes error message and a previous exception, if there is one.
 DtException (const char *errorMessage, const char *functionName, const char *fileName, unsigned int lineNumber, const DtException *previousException=0) throw ()
 CTOR takes error message, a fileName, Function, and line number which is prefixed to the error message.
 DtException (const DtException &other) throw ()
 Copy CTOR.
DtExceptionoperator= (const DtException &other) throw ()
 Assignment Operator.
virtual ~DtException () throw ()
 DTOR.
virtual const DtExceptionlastException () const throw ()
 returns a pointer to a copy of the last exception, if there was one.
virtual const DtExceptioninitialException () const throw ()
 Returns the initial exception in the chain of exceptions.
virtual const char * message () const throw ()
 Returns a printable description of the error.
virtual DtString what () const throw ()
 This function is exactly the same as message() except it returned as a DtString.
virtual DtString where () const throw ()
 Returns a printable location of the error.

Protected Attributes

DtString myLocationMessage
DtString myErrorMessage
DtExceptionmyChainedException

Detailed Description

DtException is the generic MAK Exception from which all other Exceptions thrown by MAK products are derived.

DtExceptions must be copyable. DtExceptions must not throw.

Exceptions can be chained, that is, a new exception can be created and passed a pointer to an old exception, to create an exception trace. A pointer is passed as its acceptable to pass no exception.

Constructor & Destructor Documentation

DtException::DtException ( const char *  errorMessage,
const DtException previousException = 0 
) throw ()

Default CTOR takes error message and a previous exception, if there is one.

DtException::DtException ( const char *  errorMessage,
const char *  functionName,
const char *  fileName,
unsigned int  lineNumber,
const DtException previousException = 0 
) throw ()

CTOR takes error message, a fileName, Function, and line number which is prefixed to the error message.

This CTOR also takes a previous exception if there was one.

DtException::DtException ( const DtException other) throw ()

Copy CTOR.

virtual DtException::~DtException ( ) throw ()

DTOR.

Member Function Documentation

virtual const DtException& DtException::initialException ( ) const throw ()
virtual

Returns the initial exception in the chain of exceptions.

If this is the only exception in the chain, returns itself.

virtual const DtException* DtException::lastException ( ) const throw ()
virtual

returns a pointer to a copy of the last exception, if there was one.

If not exception was passed then it returns NULL.

virtual const char* DtException::message ( ) const throw ()
virtual

Returns a printable description of the error.

DtException& DtException::operator= ( const DtException other) throw ()

Assignment Operator.

Referenced by DtTemplatedException< I >::operator=().

virtual DtString DtException::what ( ) const throw ()
virtual

This function is exactly the same as message() except it returned as a DtString.

virtual DtString DtException::where ( ) const throw ()
virtual

Returns a printable location of the error.

Member Data Documentation

DtException* DtException::myChainedException
protected
DtString DtException::myErrorMessage
protected
DtString DtException::myLocationMessage
protected

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

Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)