1 16 package org.apache.commons.jxpath; 17 18 27 28 public class JXPathContextFactoryConfigurationError extends Error { 29 30 31 private Exception exception; 32 33 37 38 public JXPathContextFactoryConfigurationError() { 39 super(); 40 this.exception = null; 41 } 42 43 49 50 public JXPathContextFactoryConfigurationError(String msg) { 51 super(msg); 52 this.exception = null; 53 } 54 55 56 63 64 public JXPathContextFactoryConfigurationError(Exception e) { 65 super(e.toString()); 66 this.exception = e; 67 } 68 69 77 78 public JXPathContextFactoryConfigurationError(Exception e, String msg) { 79 super(msg); 80 this.exception = e; 81 } 82 83 84 91 92 public String getMessage () { 93 String message = super.getMessage (); 94 95 if (message == null && exception != null) { 96 return exception.getMessage(); 97 } 98 99 return message; 100 } 101 102 108 109 public Exception getException () { 110 return exception; 111 } 112 } | Popular Tags |