Class
DomException

Definition

Constructors

DomException()

Default constuctor. Used only for serialisation.

Declaration

cs-api-definition
public DomException()

DomException(short, string)

Constructor

Declaration

cs-api-definition
public DomException(short code, string message)

Parameters

code

short

The code.

message

string

The message

Fields

DomStringSize

If the specified range of text does not fit into a DOMString

Declaration

cs-api-definition
public const short DomStringSize = 2

Field Value

short

HierarchyRequest

If any node is inserted somewhere it doesn't belong

Declaration

cs-api-definition
public const short HierarchyRequest = 3

Field Value

short

InUseAttribute

If an attempt is made to add an attribute that is already in use elsewhere

Declaration

cs-api-definition
public const short InUseAttribute = 10

Field Value

short

IndexSize

If index or size is negative, or greater than the allowed value

Declaration

cs-api-definition
public const short IndexSize = 1

Field Value

short

InvalidAccess

If a parameter or an operation is not supported by the underlying object.

Declaration

cs-api-definition
public const short InvalidAccess = 15

Field Value

short

InvalidCharacter

If an invalid or illegal character is specified, such as in a name. See production 2 in the XML specification for the definition of a legal character, and production 5 for the definition of a legal name character.

Declaration

cs-api-definition
public const short InvalidCharacter = 5

Field Value

short

InvalidModification

If an attempt is made to modify the type of the underlying object.

Declaration

cs-api-definition
public const short InvalidModification = 13

Field Value

short

InvalidState

If an attempt is made to use an object that is not, or is no longer, usable.

Declaration

cs-api-definition
public const short InvalidState = 11

Field Value

short

Namespace

If an attempt is made to create or change an object in a way which is incorrect with regard to namespaces.

Declaration

cs-api-definition
public const short Namespace = 14

Field Value

short

NoDataAllowed

If data is specified for a node which does not support data

Declaration

cs-api-definition
public const short NoDataAllowed = 6

Field Value

short

NoModificationAllowed

If an attempt is made to modify an object where modifications are not allowed

Declaration

cs-api-definition
public const short NoModificationAllowed = 7

Field Value

short

NotFound

If an attempt is made to reference a node in a context where it does not exist

Declaration

cs-api-definition
public const short NotFound = 8

Field Value

short

NotSupported

If the implementation does not support the requested type of object or operation.

Declaration

cs-api-definition
public const short NotSupported = 9

Field Value

short

Syntax

If an invalid or illegal string is specified.

Declaration

cs-api-definition
public const short Syntax = 12

Field Value

short

WrongDocument

If a node is used in a different document than the one that created it (that doesn't support it)

Declaration

cs-api-definition
public const short WrongDocument = 4

Field Value

short

Properties

Code

The error code.

Declaration

cs-api-definition
public short Code { get; set; }

Property Value

short