The base class for all exceptions thrown by the Quanser .NET classes.

Namespace:  Quanser.Common
Assembly:  Quanser.Common (in Quanser.Common.dll)

Syntax

Visual Basic (Declaration)
Public Class GenericException _
	Inherits Exception
C#
public class GenericException : Exception
Visual C++
public ref class GenericException : public Exception
JavaScript
Quanser.Common.GenericException = function();

Type.createClass(
	'Quanser.Common.GenericException',
	Exception);

Remarks

The GenericException class is defined so that Quanser exceptions may easily be identified in try...catch statements. The Quanser error code associated with the exception may be retrieved using the Code property. The ToString()()() method may be used to get an error message corresponding to the exception.

Inheritance Hierarchy

System..::.Object
  System..::.Exception
    Quanser.Common..::.GenericException
      Quanser.Communications..::.StreamException
      Quanser.Hardware..::.HilException

See Also