1. /*
  2. * @(#)TransformerConfigurationException.java 1.10 03/01/23
  3. *
  4. * Copyright 2003 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. * @param e The exception to be wrapped in a TransformerConfigurationException
  46. */
  47. public TransformerConfigurationException(String msg, Throwable e) {
  48. super(msg, e);
  49. }
  50. /**
  51. * Create a new TransformerConfigurationException from a message and a Locator.
  52. *
  53. * <p>This constructor is especially useful when an application is
  54. * creating its own exception from within a DocumentHandler
  55. * callback.</p>
  56. *
  57. * @param message The error or warning message.
  58. * @param locator The locator object for the error or warning.
  59. */
  60. public TransformerConfigurationException(String message,
  61. SourceLocator locator) {
  62. super(message, locator);
  63. }
  64. /**
  65. * Wrap an existing exception in a TransformerConfigurationException.
  66. *
  67. * @param message The error or warning message, or null to
  68. * use the message from the embedded exception.
  69. * @param locator The locator object for the error or warning.
  70. * @param e Any exception.
  71. */
  72. public TransformerConfigurationException(String message,
  73. SourceLocator locator,
  74. Throwable e) {
  75. super(message, locator, e);
  76. }
  77. }