Package groovy.lang

Class ClosureException

All Implemented Interfaces:
Serializable

public class ClosureException extends RuntimeException
An exception thrown by a closure invocation
See Also:
  • Constructor Details

    • ClosureException

      public ClosureException(Closure closure, Throwable cause)
      Creates a new closure exception.
      Parameters:
      closure - the closure that failed
      cause - the underlying cause
  • Method Details

    • getClosure

      public Closure getClosure()
      Returns the closure that threw the exception.
      Returns:
      the failing closure