Skip to main content

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

NameTypeDescription
messagestringMessage to display in notification dialog
typestringNotification dialog icon type
-"Error": Error
-"Warning": Warning
-"Information": Information
showDialogboolTrue to display the notification dialog
captionstringNotification dialog title
innerInfoobjectInformation 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".