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