error-message
This function returns the text of the error message encountered by a step. The typical usage of this function is inside a protected block, and specifically inside the "On Error" handler. The function may return an empty string if no error has been encountered or if it is not technically possible to retrieve the text of the error due to the nature of the job.
Signature
error-message(result:result) -> string |
Parameters
Name | Type | Description |
---|---|---|
result | result | Supplies the erroneous step from which the error text should be retrieved. To get the erroneous step, call the failed-step() function. |
Examples
See Add error handling to a job.