net.sf.saxon.dom

Class DOMExceptionImpl


public class DOMExceptionImpl
extends DOMException

DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impossible to perform (either for logical reasons, because data is lost, or because the implementation has become unstable). In general, DOM methods return specific error values in ordinary processing situations, such as out-of-bound errors when using NodeList .

Implementations may raise other exceptions under other circumstances. For example, implementations may raise an implementation-dependent exception if a null argument is passed.

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

Field Summary

static short
INVALID_ACCESS_ERR
static short
INVALID_MODIFICATION_ERR
static short
INVALID_STATE_ERR
static short
NAMESPACE_ERR
static short
SYNTAX_ERR
short
code

Constructor Summary

DOMExceptionImpl(short code, String message)

Field Details

INVALID_ACCESS_ERR

public static final short INVALID_ACCESS_ERR
Field Value:
15
Since:
DOM Level 2

INVALID_MODIFICATION_ERR

public static final short INVALID_MODIFICATION_ERR
Field Value:
13
Since:
DOM Level 2

INVALID_STATE_ERR

public static final short INVALID_STATE_ERR
Field Value:
11
Since:
DOM Level 2

NAMESPACE_ERR

public static final short NAMESPACE_ERR
Field Value:
14
Since:
DOM Level 2

SYNTAX_ERR

public static final short SYNTAX_ERR
Field Value:
12
Since:
DOM Level 2

code

public short code

Constructor Details

DOMExceptionImpl

public DOMExceptionImpl(short code,
                        String message)