1 7 package javax.xml.transform; 8 9 15 public class TransformerFactoryConfigurationError extends Error { 16 17 21 private Exception exception; 22 23 27 public TransformerFactoryConfigurationError() { 28 29 super(); 30 31 this.exception = null; 32 } 33 34 40 public TransformerFactoryConfigurationError(String msg) { 41 42 super(msg); 43 44 this.exception = null; 45 } 46 47 54 public TransformerFactoryConfigurationError(Exception e) { 55 56 super(e.toString()); 57 58 this.exception = e; 59 } 60 61 69 public TransformerFactoryConfigurationError(Exception e, String msg) { 70 71 super(msg); 72 73 this.exception = e; 74 } 75 76 83 public String getMessage() { 84 85 String message = super.getMessage(); 86 87 if ((message == null) && (exception != null)) { 88 return exception.getMessage(); 89 } 90 91 return message; 92 } 93 94 100 public Exception getException() { 101 return exception; 102 } 103 } 104 | Popular Tags |