1 16 17 package org.springframework.beans; 18 19 28 public class NotWritablePropertyException extends InvalidPropertyException { 29 30 private String [] possibleMatches = null; 31 32 33 38 public NotWritablePropertyException(Class beanClass, String propertyName) { 39 super(beanClass, propertyName, 40 "Bean property '" + propertyName + "' is not writable or has an invalid setter method: " + 41 "Does the return type of the getter match the parameter type of the setter?"); 42 } 43 44 50 public NotWritablePropertyException(Class beanClass, String propertyName, String msg) { 51 super(beanClass, propertyName, msg); 52 } 53 54 61 public NotWritablePropertyException(Class beanClass, String propertyName, String msg, Throwable cause) { 62 super(beanClass, propertyName, msg, cause); 63 } 64 65 73 public NotWritablePropertyException(Class beanClass, String propertyName, String msg, String [] possibleMatches) { 74 super(beanClass, propertyName, msg); 75 this.possibleMatches = possibleMatches; 76 } 77 78 79 83 public String [] getPossibleMatches() { 84 return possibleMatches; 85 } 86 87 } 88 | Popular Tags |