1 3 9 10 package javax.xml.parsers; 11 12 21 22 public class FactoryConfigurationError extends Error { 23 24 27 private Exception exception; 28 29 33 34 public FactoryConfigurationError() { 35 super(); 36 this.exception = null; 37 } 38 39 45 46 public FactoryConfigurationError(String msg) { 47 super(msg); 48 this.exception = null; 49 } 50 51 52 59 60 public FactoryConfigurationError(Exception e) { 61 super(e.toString()); 62 this.exception = e; 63 } 64 65 73 74 public FactoryConfigurationError(Exception e, String msg) { 75 super(msg); 76 this.exception = e; 77 } 78 79 80 89 90 public String getMessage () { 91 String message = super.getMessage (); 92 93 if (message == null && exception != null) { 94 return exception.getMessage(); 95 } 96 97 return message; 98 } 99 100 106 107 public Exception getException () { 108 return exception; 109 } 110 } 111 | Popular Tags |