IApplication.ThrowUserException method
Namespace: NextDesign.Desktop
Description
Throws a user exception.
You can use this method when you want to explicitly notify an exception in the extension's run-time exception handling.
argument
Name | Type | Description |
---|---|---|
message | string | Message to display in notification dialog |
type | string | Notification dialog icon type -"Error": Error -"Warning": Warning -"Information": Information |
showDialog | bool | True to display the notification dialog |
caption | string | Notification dialog title |
innerInfo | object | Information on the cause of the exception |
Return value
- void
Annotation
- If the extension throws an exception, it rolls back the transaction that called the extension process and undoes any changes to the model in the meantime. You can use this method when you want to explicitly notify an exception in the extension's run-time exception handling.
- When this method is used in the script editor, the notification dialog is not displayed regardless of the value of the argument "showDialog".