1 19 20 package org.apache.cayenne.reflect; 21 22 import org.apache.cayenne.CayenneRuntimeException; 23 24 31 public class PropertyException extends CayenneRuntimeException { 32 33 protected Property property; 34 protected Accessor accessor; 35 protected Object source; 36 37 public PropertyException(String message) { 38 this(message, null); 39 } 40 41 public PropertyException(String message, Throwable cause) { 42 super(message, cause); 43 } 44 45 public PropertyException(String message, Accessor accessor, Object source) { 46 this(message, accessor, source, null); 47 } 48 49 public PropertyException(String message, Accessor accessor, Object source, 50 Throwable cause) { 51 super(message, cause); 52 53 this.accessor = accessor; 54 this.source = source; 55 } 56 57 public PropertyException(String message, Property property, Object source) { 58 this(message, property, source, null); 59 } 60 61 public PropertyException(String message, Property property, Object source, 62 Throwable cause) { 63 super(message, cause); 64 65 this.property = property; 66 this.source = source; 67 } 68 69 72 public Accessor getAccessor() { 73 return accessor; 74 } 75 76 public Property getProperty() { 77 return property; 78 } 79 80 83 public Object getSource() { 84 return source; 85 } 86 } 87 | Popular Tags |