GPUUncapturedErrorEvent: error property

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("WebGPU API")}}{{SecureContext_Header}}{{AvailableInWorkers}}

The **error** read-only property of the {{domxref("GPUUncapturedErrorEvent")}} interface is a {{domxref("GPUError")}} object instance providing access to the details of the error.

Value

A {{domxref("GPUError")}} object instance.

Examples

See the main [GPUUncapturedErrorEvent](/en-US/docs/Web/API/GPUUncapturedErrorEvent#examples) page for an example.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • The WebGPU API
  • WebGPU Error Handling best practices