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

Protected Attributes

DtString myLocationMessage
 
DtString myErrorMessage
 
DtException * myChainedException
 

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 
)
noexcept

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

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

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 DtString &  errorMessage,
const char *  functionName,
const DtString &  fileName,
unsigned int  lineNumber,
const DtException *  previousException = 0 
)
noexcept
DtException::DtException ( const DtException &  other)
noexcept

Copy CTOR.

virtual DtException::~DtException ( )
noexcept

DTOR.

Member Function Documentation

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

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
virtualnoexcept

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
virtualnoexcept

Returns a printable description of the error.

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

Assignment Operator.

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

virtual DtString DtException::what ( ) const
virtualnoexcept

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

virtual DtString DtException::where ( ) const
virtualnoexcept

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 Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)