failed-step

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Expression Functions > Step Result Functions >

failed-step

Returns the step result. Using this function is meaningful when you are handling errors with protected blocks. The failed-step function must be part of the "On Error" handler, otherwise the step where you are using it will fail because there is no erroneous step.

 

As such, this function does not indicate the step where the error occurred. To find the result's attributes, pass this function as argument to functions such as stdout or stderr, for example:

 

stderr(failed-step())

stdout(failed-step())

 

Signature

failed-step() -> result

 

Examples

See the following examples:

 

Adding Error Handling to a Job
Validate an XML Document with Error Logging

© 2019 Altova GmbH