Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


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

  - command.with.error:

  - except: CommandException, HttpCommandException
  - log: "Exception happened: ${exception.message}"

  - except.end

See the reference docs for the most common exception types: