...
In this case, only exceptions of type CommandException
or HttpCommandException
will be handled. All other exceptions will be re-thrown by the pipeline.
Since type
is the default parameter of the except
command, you can also use the “one-liner” format like this:
Code Block | ||
---|---|---|
| ||
pipeline:
- command.with.error:
- except: CommandException, HttpCommandException
- log: "Exception happened: ${exception.message}"
- except.end |
See the reference docs for the most common exception types:
https://logabit.atlassian.net/wiki/spaces/PA/pages/2552856577#exception.type
...