Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

nvsg::NVSGException Class Reference

#include <ErrorHandling.h>

List of all members.

Public Methods

 NVSGException (bool critical, const std::string &errMsg)
 NVSGException (bool critical, unsigned int errMsgID)
virtual ~NVSGException ()
virtual bool isCritical () const
virtual const std::string & getErrorMessage () const


Detailed Description

Exception base class. Derive from this class if you intend to provide more specific exceptions.


Constructor & Destructor Documentation

nvsg::NVSGException::NVSGException bool    critical,
const std::string &    errMsg
[inline]
 

Constructs a NVSGExeption object

Parameters

  • critical Assigns whether this will be treated as a critical or noncritical exception.
  • errMsg The related error message to be displayed with subsequent error handling.

nvsg::NVSGException::NVSGException bool    critical,
unsigned int    errMsgID
[inline]
 

Constructs a NVSGExeption object

Parameters

  • critical Assigns whether this will be treated as a critical or noncritical exception.
  • errMsgID Identifies a string resource whithin a string table that holds the related error message to be displayed with subsequent error handling.
Note This is not implemented yet. Use the NVSGException(bool, const string&) variant instead.


Member Function Documentation

bool nvsg::NVSGException::isCritical   const [inline, virtual]
 

Tests whether this exception is critical to the execution of subsequent code. For example, an error handler routine can query the critical status of an exception, and then decide to either throw the exception (if it is critical) or pop up a message box and then resume execution.

Return value true if this is a critical exception and execution of subsequent code is not possible; false if this exception is noncritical.

const std::string & nvsg::NVSGException::getErrorMessage   const [inline, virtual]
 

Receive the exception's error message.

Return value A reference to a const string object holding the exception's error message.


The documentation for this class was generated from the following file:
Generated on Tue Mar 1 13:20:25 2005 for NVSGSDK by NVIDIA