![]() | Adding an Exception |
From Solution Explorer, double-click the Driver Designer node under the Nimbus node.
The IVI.NET Driver Designer tree view opens.
Expand the root node, which will be named after the driver assembly (e.g.: Acme.Acme4321).
Right-click on the Exceptions node and select Add Exception.
A new exception class is added with a default name and the tree node enters edit mode. Type the desired name for the new exception class and hit the Enter key.
When choosing the name for a new exception class, the following naming rules apply:
The name must be unique within the driver.
The name must contain only alphanumeric characters, and must start with an alphabetic character.
Spaces are not allowed.
![]() |
---|
To define a generic exception class, specify the generic type parameter(s) as part of the exception class name, for example Acme4321Exception<T, U>. Refer to Understanding Type Name Resolution in Nimbus for more information about type name resolution and generics in Nimbus. |
The new exception class will be defined in a file named <exceptionName>.cs that Nimbus will automatically add to the driver project.
After the exception class is added, the Exception General Editor appears in the right portion of the IVI.NET Driver Designer.