1 46 package groovy.lang; 47 48 49 58 public class MissingPropertyException extends GroovyRuntimeException { 59 60 private String property; 61 private Class type; 62 63 public MissingPropertyException(String property, Class type) { 64 super("No such property: " + property + " for class: " + type.getName()); 65 this.property = property; 66 this.type = type; 67 } 68 69 public MissingPropertyException(String property, Class type, Throwable e) { 70 super("No such property: " + property + " for class: " + type.getName() + ". Reason: " + e, e); 71 this.property = property; 72 this.type = type; 73 } 74 75 public MissingPropertyException(String message, String property, Class type) { 76 super(message); 77 this.property = property; 78 this.type = type; 79 } 80 81 84 public String getProperty() { 85 return property; 86 } 87 88 92 public Class getType() { 93 return type; 94 } 95 } 96 | Popular Tags |