DOMException Class

Definition

DOM operations only raise exceptions in "exceptional" circumstances, i.

[Android.Runtime.Register("org/w3c/dom/DOMException", DoNotGenerateAcw=true)]
public class DOMException : Java.Lang.RuntimeException
[<Android.Runtime.Register("org/w3c/dom/DOMException", DoNotGenerateAcw=true)>]
type DOMException = class
    inherit RuntimeException
Inheritance
Attributes

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

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

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 3 Core Specification.

Java documentation for org.w3c.dom.DOMException.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

DOMException(Int16, String)
DOMException(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Fields

DomstringSizeErr

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

HierarchyRequestErr

If any Node is inserted somewhere it doesn't belong.

IndexSizeErr

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

InuseAttributeErr

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

InvalidAccessErr

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

InvalidCharacterErr

If an invalid or illegal character is specified, such as in an XML name.

InvalidModificationErr

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

InvalidStateErr

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

is_generated (Inherited from Throwable)
NamespaceErr

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

NoDataAllowedErr

If data is specified for a Node which does not support data.

NoModificationAllowedErr

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

NotFoundErr

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

NotSupportedErr

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

SyntaxErr

If an invalid or illegal string is specified.

TypeMismatchErr

If the type of an object is incompatible with the expected type of the parameter associated to the object.

ValidationErr

If a call to a method such as insertBefore or removeChild would make the Node invalid with respect to "partial validity", this exception would be raised and the operation would not be done.

WrongDocumentErr

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

Properties

Cause

Returns the cause of this throwable or null if the cause is nonexistent or unknown.

(Inherited from Throwable)
Class (Inherited from Throwable)
Code
Handle

The handle to the underlying Android instance.

(Inherited from Throwable)
JniIdentityHashCode (Inherited from Throwable)
JniPeerMembers
LocalizedMessage

Creates a localized description of this throwable.

(Inherited from Throwable)
Message

Returns the detail message string of this throwable.

(Inherited from Throwable)
PeerReference (Inherited from Throwable)
StackTrace (Inherited from Throwable)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

AddSuppressed(Throwable)

Appends the specified exception to the exceptions that were suppressed in order to deliver this exception.

(Inherited from Throwable)
Dispose() (Inherited from Throwable)
Dispose(Boolean) (Inherited from Throwable)
FillInStackTrace()

Fills in the execution stack trace.

(Inherited from Throwable)
GetStackTrace()

Provides programmatic access to the stack trace information printed by #printStackTrace().

(Inherited from Throwable)
GetSuppressed()

Returns an array containing all of the exceptions that were suppressed, typically by the try-with-resources statement, in order to deliver this exception.

(Inherited from Throwable)
InitCause(Throwable)

Initializes the cause of this throwable to the specified value.

(Inherited from Throwable)
PrintStackTrace()

Prints this throwable and its backtrace to the standard error stream.

(Inherited from Throwable)
PrintStackTrace(PrintStream)

Prints this throwable and its backtrace to the specified print stream.

(Inherited from Throwable)
PrintStackTrace(PrintWriter)

Prints this throwable and its backtrace to the specified print writer.

(Inherited from Throwable)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Throwable)
SetStackTrace(StackTraceElement[])

Sets the stack trace elements that will be returned by #getStackTrace() and printed by #printStackTrace() and related methods.

(Inherited from Throwable)
ToString() (Inherited from Throwable)
UnregisterFromRuntime() (Inherited from Throwable)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Throwable)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Throwable)
IJavaPeerable.Finalized() (Inherited from Throwable)
IJavaPeerable.JniManagedPeerState (Inherited from Throwable)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Throwable)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Throwable)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Throwable)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to