Back to Content

GPUError

files/en-us/web/api/gpuerror/index.md

latest1.1 KB
Original Source

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

The GPUError interface of the {{domxref("WebGPU API", "WebGPU API", "", "nocode")}} is the base interface for errors surfaced by {{domxref("GPUDevice.popErrorScope")}} and the {{domxref("GPUDevice.uncapturederror_event", "uncapturederror")}} event.

{{InheritanceDiagram}}

Instance properties

  • {{domxref("GPUError.message", "message")}} {{ReadOnlyInline}}
    • : A string providing a human-readable message that explains why the error occurred.

Examples

For usage examples of error objects based on GPUError, see:

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also