1 46 package groovy.lang; 47 48 54 public class ClosureException extends RuntimeException { 55 56 private Closure closure; 57 58 public ClosureException(Closure closure, Throwable cause) { 59 super("Exception thrown by call to closure: " + closure + " reaason: " + cause, cause); 60 this.closure = closure; 61 } 62 63 public Closure getClosure() { 64 return closure; 65 } 66 } 67 | Popular Tags |