org.apache.xerces.dom3
Interface DOMError


public interface DOMError

DOMError is an interface that describes an error.

See also the Document Object Model (DOM) Level 3 Core Specification.


Field Summary
static short SEVERITY_ERROR
          The severity of the error described by the DOMError is error
static short SEVERITY_FATAL_ERROR
          The severity of the error described by the DOMError is fatal error
static short SEVERITY_WARNING
          The severity of the error described by the DOMError is warning
 
Method Summary
 java.lang.Object getException()
          The byte or character offset into the input source, if we're parsing a file or a byte stream then this will be the byte offset into that stream, but if a character media is parsed then the offset will be the character offset.exception is a reserved word, we need to rename it.
 DOMLocator getLocation()
          The location of the error.
 java.lang.String getMessage()
          An implementation specific string describing the error that occured.
 short getSeverity()
          The severity of the error, either SEVERITY_WARNING, SEVERITY_ERROR, or SEVERITY_FATAL_ERROR.
 

Field Detail

SEVERITY_WARNING

public static final short SEVERITY_WARNING
The severity of the error described by the DOMError is warning

SEVERITY_ERROR

public static final short SEVERITY_ERROR
The severity of the error described by the DOMError is error

SEVERITY_FATAL_ERROR

public static final short SEVERITY_FATAL_ERROR
The severity of the error described by the DOMError is fatal error
Method Detail

getSeverity

public short getSeverity()
The severity of the error, either SEVERITY_WARNING, SEVERITY_ERROR, or SEVERITY_FATAL_ERROR.

getMessage

public java.lang.String getMessage()
An implementation specific string describing the error that occured.

getException

public java.lang.Object getException()
The byte or character offset into the input source, if we're parsing a file or a byte stream then this will be the byte offset into that stream, but if a character media is parsed then the offset will be the character offset.exception is a reserved word, we need to rename it.

getLocation

public DOMLocator getLocation()
The location of the error.


Copyright © 1999-2002 Apache XML Project. All Rights Reserved.