Table of Contents

Class DomException

Namespace
SharpVectors.Dom
Assembly
SharpVectors.Core.dll

Represents errors that occur during DOM operation execution.

[Serializable]
public class DomException : Exception, ISerializable, _Exception
Inheritance
DomException
Implements
Derived
Inherited Members

Remarks

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 INodeList.

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

Some languages and object systems do not support the concept of exceptions. For such systems, error conditions may be indicated using native error reporting mechanisms. For some bindings, for example, methods may return error codes similar to those listed in the corresponding method descriptions.

Constructors

DomException()

Initializes a new instance of the System.Exception class.

DomException(DomExceptionType)

Initializes a new instance of the System.Exception class with a specified error code.

DomException(DomExceptionType, string)

Initializes a new instance of the System.Exception class with a specified error message and error code.

DomException(DomExceptionType, string, Exception)

Initializes a new instance of the System.Exception class with a specified error message, error code and a reference to the inner exception that is the cause of this exception.

DomException(SerializationInfo, StreamingContext)

Initializes a new instance of the System.Exception class with serialized data.

DomException(string, Exception)

Initializes a new instance of the System.Exception class with a specified error message and a reference to the inner exception that is the cause of this exception.

Properties

Code

Gets or sets a code specifying the type of the error.

See Also