Class DOMException

All Implemented Interfaces:
Serializable

public class DOMException extends 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:
  • Field Details

  • Constructor Details

    • DOMException

      public DOMException(short code, String message)
  • Method Details

    • getCode

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