Throw Exception

Creates a new exception of the selected type with the given message and throws it. Unlike Throw, the exception type is selected from a list without writing an expression. The exception can be caught with a Try Catch.


⬅️INPUT

Parameter

Type

Required

Description

ExceptionType

Type

❌ No

Exception type to throw. The list contains the types in Try Catch; another type is selected with Browse.... The type must be a non-abstract exception type with a public constructor; otherwise a validation error occurs. Default: System.Exception.

Message

String

✅ Yes

Error message. If the selected type has only a parameterless constructor, the message is not used.