1 46 package groovy.lang; 47 48 import org.codehaus.groovy.runtime.InvokerHelper; 49 50 59 public class MissingMethodException extends GroovyRuntimeException { 60 61 private String method; 62 private Class type; 63 64 public MissingMethodException(String method, Class type, Object [] arguments) { 65 super( 66 "No signature of method " 67 + type.getName() 68 + "." 69 + method 70 + "() is applicable for argument types: (" 71 + InvokerHelper.toTypeString(arguments) 72 + ") values: " 73 + InvokerHelper.toString(arguments)); 74 this.method = method; 75 this.type = type; 76 } 77 78 81 public String getMethod() { 82 return method; 83 } 84 85 89 public Class getType() { 90 return type; 91 } 92 } 93 | Popular Tags |