IApplication.ThrowUserException method
Namespace: NextDesign.Desktop
Description
Throw a user exception.
You can use this method when you want to explicitly notify an exception in the runtime exception handling of the extension.
argument
Name | Type | Description |
---|---|---|
message | string | Message to display in notification dialog |
type | string | Type of notification dialog icon - "Error" : Error - "Warning" : Warning - "Information" : Information |
showDialog | bool | True to show notification dialog |
caption | string | Notification dialog title |
innerInfo | object | Information about the cause of the exception |
Return value
- void
Annotations
- If an extension throws an exception, rollback the transaction that called the extension process, undoing any changes to the model in the meantime.
- If this method is used in the script editor, the notification dialog will not be displayed regardless of the value of the argument "showDialog".