1. /*
  2. * @(#)TransformerConfigurationException.java 1.14 04/07/26
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.xml.transform;
  8. /**
  9. * Indicates a serious configuration error.
  10. */
  11. public class TransformerConfigurationException extends TransformerException {
  12. /**
  13. * Create a new <code>TransformerConfigurationException</code> with no
  14. * detail mesage.
  15. */
  16. public TransformerConfigurationException() {
  17. super("Configuration Error");
  18. }
  19. /**
  20. * Create a new <code>TransformerConfigurationException</code> with
  21. * the <code>String </code> specified as an error message.
  22. *
  23. * @param msg The error message for the exception.
  24. */
  25. public TransformerConfigurationException(String msg) {
  26. super(msg);
  27. }
  28. /**
  29. * Create a new <code>TransformerConfigurationException</code> with a
  30. * given <code>Exception</code> base cause of the error.
  31. *
  32. * @param e The exception to be encapsulated in a
  33. * TransformerConfigurationException.
  34. */
  35. public TransformerConfigurationException(Throwable e) {
  36. super(e);
  37. }
  38. /**
  39. * Create a new <code>TransformerConfigurationException</code> with the
  40. * given <code>Exception</code> base cause and detail message.
  41. *
  42. * @param e The exception to be encapsulated in a
  43. * TransformerConfigurationException
  44. * @param msg The detail message.
  45. */
  46. public TransformerConfigurationException(String msg, Throwable e) {
  47. super(msg, e);
  48. }
  49. /**
  50. * Create a new TransformerConfigurationException from a message and a Locator.
  51. *
  52. * <p>This constructor is especially useful when an application is
  53. * creating its own exception from within a DocumentHandler
  54. * callback.</p>
  55. *
  56. * @param message The error or warning message.
  57. * @param locator The locator object for the error or warning.
  58. */
  59. public TransformerConfigurationException(String message,
  60. SourceLocator locator) {
  61. super(message, locator);
  62. }
  63. /**
  64. * Wrap an existing exception in a TransformerConfigurationException.
  65. *
  66. * @param message The error or warning message, or null to
  67. * use the message from the embedded exception.
  68. * @param locator The locator object for the error or warning.
  69. * @param e Any exception.
  70. */
  71. public TransformerConfigurationException(String message,
  72. SourceLocator locator,
  73. Throwable e) {
  74. super(message, locator, e);
  75. }
  76. }