VR-Link JAVA API Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
13.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 Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)