Class CatchExpression

java.lang.Object
com.cloudbees.groovy.cps.CatchExpression
All Implemented Interfaces:
Serializable

public class CatchExpression extends Object implements Serializable
Catch block in a try/catch statement.
Author:
Kohsuke Kawaguchi
See Also:
  • Field Details

    • type

      public final Class<? extends Throwable> type
      Type of the exception to catch.
    • name

      public final String name
      Name of the variable that receives the exception.
    • handler

      public final Block handler
      Code that executes up on receiving an exception.
  • Constructor Details