Skip to main content

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

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