1 18 package org.osgi.service.cm; 19 20 26 public class ConfigurationException extends Exception { 27 static final long serialVersionUID = -1690090413441769377L; 28 29 private final String property; 30 private final String reason; 31 32 35 private final Throwable cause; 36 37 44 public ConfigurationException(String property, String reason) { 45 super(property + " : " + reason); 46 this.property = property; 47 this.reason = reason; 48 this.cause = null; 49 } 50 51 60 public ConfigurationException(String property, String reason, 61 Throwable cause) { 62 super(property + " : " + reason); 63 this.property = property; 64 this.reason = reason; 65 this.cause = cause; 66 } 67 68 74 public String getProperty() { 75 return property; 76 } 77 78 83 public String getReason() { 84 return reason; 85 } 86 87 95 public Throwable getCause() { 96 return cause; 97 } 98 99 109 public Throwable initCause(Throwable cause) { 110 throw new IllegalStateException (); 111 } 112 } 113 | Popular Tags |