Package org.jdom2

Class JDOMException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    DataConversionException, JDOMParseException, XSLTransformException

    public class JDOMException
    extends java.lang.Exception
    The top level 'checked' exception that JDOM classes can throw. JDOM does throw a number of unchecked exceptions, but all the checked exceptions are descendants of this class.
    Author:
    Brett McLaughlin, Jason Hunter
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      JDOMException()
      This will create an Exception.
      JDOMException​(java.lang.String message)
      This will create an Exception with the given message.
      JDOMException​(java.lang.String message, java.lang.Throwable cause)
      This will create an Exception with the given message and wrap another Exception.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JDOMException

        public JDOMException()
        This will create an Exception.
      • JDOMException

        public JDOMException​(java.lang.String message)
        This will create an Exception with the given message.
        Parameters:
        message - String message indicating the problem that occurred.
      • JDOMException

        public JDOMException​(java.lang.String message,
                             java.lang.Throwable cause)
        This will create an Exception with the given message and wrap another Exception. This is useful when the originating Exception should be held on to.
        Parameters:
        message - String message indicating the problem that occurred.
        cause - Throwable that caused this to be thrown.