-
Notifications
You must be signed in to change notification settings - Fork 24
Throw
Miriam McMahon edited this page Apr 27, 2023
·
6 revisions
The throw command logs the associated message and bubbles execution up to a try catch finally block. If the exception is not handled within the script, the code invoking the operation handles it and the operation is considered to have failed. The variable 'Exception' is populated with the Value given to throw and is available in the catch block.
Parameter Name | Description | Type | Resolved Type | Required |
---|---|---|---|---|
Value | A message to indicate what the problem was. It will be logged. | Value | String | No |
Example:
{
"Throw": { "Value": "this is the error message" }
}