C# Class Tidy.Dom.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 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.

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

Inheritance: System.Exception
显示文件 Open project: r1pper/TidyNetPortable

Public Methods

Method Description
DomException ( ) : System

Default constuctor. Used only for serialisation.

DomException ( short code, string message ) : System

Constructor

Method Details

DomException() public method

Default constuctor. Used only for serialisation.
public DomException ( ) : System
return System

DomException() public method

Constructor
public DomException ( short code, string message ) : System
code short The code.
message string The message
return System