rong_exception

异常处理

本页 API 参考由仓库内的英文文档生成,暂仅提供英文版。

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