Class ThrowBlock

java.lang.Object
com.cloudbees.groovy.cps.impl.ThrowBlock
All Implemented Interfaces:
Block, Serializable

public class ThrowBlock extends Object implements Block
Author:
Kohsuke Kawaguchi
See Also:
  • Constructor Details

    • ThrowBlock

      public ThrowBlock(Block exp)
    • ThrowBlock

      public ThrowBlock(SourceLocation loc, Block exp, boolean fillStackTrace)
  • Method Details

    • eval

      public Next eval(Env e, Continuation unused)
      Description copied from interface: Block
      Executes this expression, then pass the result to the given continuation when it's available.

      To be more precise, this method does not evaluate the expression by itself synchronously. Instead, the evaluation is done by the caller by repeatedly step executing the resulting Next object.

      Specified by:
      eval in interface Block