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 | Private Member Functions
DtTemplatedException< I > Class Template Reference

A Templated version of DtException. More...

+ Inheritance diagram for DtTemplatedException< I >:
+ Collaboration diagram for DtTemplatedException< I >:

Public Member Functions

 DtTemplatedException (const char *errorMessage, const DtException *previousException=0) noexcept
 Default CTOR, exactly the same as the DtException CTOR. More...
 
 DtTemplatedException (const DtString &errorMessage, const DtException *previousException=0) noexcept
 
 DtTemplatedException (const char *errorMessage, const char *functionName, const char *fileName, unsigned int lineNumber, const DtException *previousException=0) noexcept
 CTOR, exactly the same as the DtException CTOR. More...
 
 DtTemplatedException (const DtString &errorMessage, const char *functionName, const DtString &fileName, unsigned int lineNumber, const DtException *previousException=0) noexcept
 CTOR, exactly the same as the DtException CTOR. More...
 
 DtTemplatedException (const DtTemplatedException &other) noexcept
 Copy CTOR. More...
 
DtTemplatedException & operator= (const DtTemplatedException &other) noexcept
 Assignment Operator. More...
 
virtual ~DtTemplatedException () noexcept
 
- Public Member Functions inherited from DtException
 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...
 

Private Member Functions

int retVal () const
 I believe that to make DtTemplateExceptions different types you have to use the template argument. More...
 

Additional Inherited Members

- Protected Attributes inherited from DtException
DtString myLocationMessage
 
DtString myErrorMessage
 
DtException * myChainedException
 

Detailed Description

template<int I>
class DtTemplatedException< I >

A Templated version of DtException.

Template instances of this class will have unique types, and also inherit from DtException. This is useful when you want to subclass DtException exclusively because you want a new type of exception, and don't want to change functionality.

Warning: The Template parameter I is an integer, and each template instance of this needs to use a different value for I.

Constructor & Destructor Documentation

template<int I>
DtTemplatedException< I >::DtTemplatedException ( const char *  errorMessage,
const DtException *  previousException = 0 
)
inlinenoexcept

Default CTOR, exactly the same as the DtException CTOR.

template<int I>
DtTemplatedException< I >::DtTemplatedException ( const DtString &  errorMessage,
const DtException *  previousException = 0 
)
inlinenoexcept
template<int I>
DtTemplatedException< I >::DtTemplatedException ( const char *  errorMessage,
const char *  functionName,
const char *  fileName,
unsigned int  lineNumber,
const DtException *  previousException = 0 
)
inlinenoexcept

CTOR, exactly the same as the DtException CTOR.

template<int I>
DtTemplatedException< I >::DtTemplatedException ( const DtString &  errorMessage,
const char *  functionName,
const DtString &  fileName,
unsigned int  lineNumber,
const DtException *  previousException = 0 
)
inlinenoexcept

CTOR, exactly the same as the DtException CTOR.

template<int I>
DtTemplatedException< I >::DtTemplatedException ( const DtTemplatedException< I > &  other)
inlinenoexcept

Copy CTOR.

template<int I>
virtual DtTemplatedException< I >::~DtTemplatedException ( )
inlinevirtualnoexcept

Member Function Documentation

template<int I>
DtTemplatedException& DtTemplatedException< I >::operator= ( const DtTemplatedException< I > &  other)
inlinenoexcept

Assignment Operator.

References DtException::operator=().

template<int I>
int DtTemplatedException< I >::retVal ( ) const
inlineprivate

I believe that to make DtTemplateExceptions different types you have to use the template argument.

That is what retVal does. It serves no purpose and hence is private.


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)