Documentation

error

Generate an error into the pipeline

error

This action generates an error into the pipeline. This is useful for testing error handling in pipelines when using the try directive.

try {
    error "Simulated error";
} catch {
    accept "Caught an error: %{aaa.caught_error}";
}