1 16 package com.google.gwt.core.ext; 17 18 21 public class BadPropertyValueException extends Exception { 22 23 private final String badValue; 24 25 private final String propName; 26 27 public BadPropertyValueException(String propName) { 28 super("Missing property '" + propName + "' was not specified"); 29 30 this.propName = propName; 31 this.badValue = "<null>"; 32 } 33 34 public BadPropertyValueException(String propName, String badValue) { 35 super("Property '" + propName + "' cannot be set to unexpected value '" 36 + badValue + "'"); 37 38 this.propName = propName; 39 this.badValue = badValue; 40 } 41 42 String getBadValue() { 43 return badValue; 44 } 45 String getPropName() { 46 return propName; 47 } 48 } 49 | Popular Tags |