VR-Link C# API Documentation
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
12.6 - The DtException Class

DtException is the VR-Link exception class.

Member functions may throw exceptions under certain conditions, for example, if an object cannot be properly constructed or unexpected input is passed into a member function as a parameter. Any member function or constructor that throws an exception will state so in the header file and class documentation. The ostream operator, <<, is used to print exceptions, and the message() member function returns a string that describes the exception.

Example:

// DtDDMRegion may throw exception on creation
try
{
region = new DtDDMRegion(spaceName, dimensionVector);
}
catch (const DtException& regionException)
{
DtWarn << "Caught exception: " << regionException << std::endl;
}

[<< Diagnostic Utilities] [Home] [Functions for Manipulating IP Addresses >>]


Document ID: Generated on Fri May 15 06:36:13 EDT 2015 from SVN revision 153263
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)