1 18 package net.sf.uitags.util; 19 20 21 27 public final class IllegalPropertyValueException extends RuntimeException { 28 31 private static final long serialVersionUID = 52L; 32 33 37 40 private String propKey; 41 44 private String propValue; 45 48 private String reason; 49 50 51 52 56 59 public IllegalPropertyValueException() { 60 super(); 61 } 62 63 68 public IllegalPropertyValueException(String message) { 69 super(message); 70 } 71 72 77 public IllegalPropertyValueException(Throwable cause) { 78 super(cause); 79 } 80 81 88 public IllegalPropertyValueException(String message, Throwable cause) { 89 super(message, cause); 90 } 91 92 100 public IllegalPropertyValueException( 101 String propKey, String propValue, String reason) { 102 super("Illegal value for property '" + propKey + "': '" + propValue + "'."); 103 this.propKey = propKey; 104 this.propValue = propValue; 105 this.reason = reason; 106 } 107 108 109 110 114 119 public String getPropertyKey() { 120 return this.propKey; 121 } 122 123 128 public String getPropertyValue() { 129 return this.propValue; 130 } 131 132 137 public String getReason() { 138 return this.reason; 139 } 140 } 141 | Popular Tags |