Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. GPUUncapturedErrorEvent

GPUUncapturedErrorEvent

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.

Note: This feature is available inWeb Workers.

TheGPUUncapturedErrorEvent interface of theWebGPU API is the event object type for theGPUDeviceuncapturederror event, used for telemetry and to report unexpected errors.

Known error cases should be handled usingpushErrorScope() andpopErrorScope().

Event GPUUncapturedErrorEvent

Constructor

GPUUncapturedErrorEvent()

Creates a newGPUUncapturedErrorEvent object instance.

Instance properties

Inherits properties from its parent,Event.

errorRead only

AGPUError object instance providing access to the details of the error.

Examples

You could use something like the following as a global mechanism to pick up any errors that aren't handled by error scopes and capture them.

js
// …device.addEventListener("uncapturederror", (event) => {  // Re-surface the error  console.error("A WebGPU error was not captured:", event.error.message);  reportErrorToServer({    type: event.error.constructor.name,    message: event.error.message,  });});// …

Specifications

Specification
WebGPU
# gpuuncapturederrorevent

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp