Class DOMException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DOMException
    extends java.lang.RuntimeException
    Thrown when DOM exceptions occur. Two subclasses exist: DOMNodeException and DOMParseException which give more detailed information for DOM manipulation errors and parse errors, respectively. All DOMExceptions thrown in this package will be instances of one of those two classes.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DOMException​(short code, java.lang.String message)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      short getCode()
      This method gets the code of this DOMException.
      • 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

      • DOMException

        public DOMException​(short code,
                            java.lang.String message)
    • Method Detail

      • getCode

        public short getCode()
        This method gets the code of this DOMException.
        Returns:
        the code of this DOMException