rong_exception

Exception handling

DOMException

Web-standard exception type.

const err = new DOMException("operation cancelled", "AbortError");
err.name;    // "AbortError"
err.message; // "operation cancelled"

Error Names

NameDescription
AbortErrorOperation aborted
NetworkErrorNetwork failure
TimeoutErrorOperation timed out
NotSupportedErrorUnsupported operation
InvalidStateErrorInvalid state
SyntaxErrorSyntax error
SecurityErrorSecurity restriction
QuotaExceededErrorQuota exceeded
NotFoundErrorNot found
DataCloneErrorData clone failed
InvalidAccessErrorInvalid access
TypeMismatchErrorType mismatch
URLMismatchErrorURL mismatch