1 16 17 package org.apache.log4j.config; 18 19 26 public class PropertySetterException extends Exception { 27 protected Throwable rootCause; 28 29 public 30 PropertySetterException(String msg) { 31 super(msg); 32 } 33 34 public 35 PropertySetterException(Throwable rootCause) 36 { 37 super(); 38 this.rootCause = rootCause; 39 } 40 41 44 public 45 String getMessage() { 46 String msg = super.getMessage(); 47 if (msg == null && rootCause != null) { 48 msg = rootCause.getMessage(); 49 } 50 return msg; 51 } 52 } 53 | Popular Tags |