VR-Link API Documentation for HLA 1516
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) throw ()
 Default CTOR, exactly the same as the DtException CTOR.
 DtTemplatedException (const char *errorMessage, const char *functionName, const char *fileName, unsigned int lineNumber, const DtException *previousException=0) throw ()
 CTOR, exactly the same as the DtException CTOR.
 DtTemplatedException (const DtTemplatedException &other) throw ()
 Copy CTOR.
DtTemplatedExceptionoperator= (const DtTemplatedException &other) throw ()
 Assignment Operator.
virtual ~DtTemplatedException () throw ()
- Public Member Functions inherited from DtException
 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.

Private Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from DtException
DtString myLocationMessage
DtString myErrorMessage
DtExceptionmyChainedException

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 
) throw ()
inline

Default CTOR, exactly the same as the DtException CTOR.

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

CTOR, exactly the same as the DtException CTOR.

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

Copy CTOR.

template<int I>
virtual DtTemplatedException< I >::~DtTemplatedException ( ) throw ()
inlinevirtual

Member Function Documentation

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

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 Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)