WebGpuRuntimeException


public class WebGpuRuntimeException extends Exception

Known direct subclasses
InternalException

Exception for Internal type errors.

OutOfMemoryException

Exception for OutOfMemory type errors.

UnknownException

Exception for Unknown type errors.

ValidationException

Exception for Validation type errors.


Base class for exceptions that can happen at runtime.

Summary

Public constructors

Public methods

static final @NonNull WebGpuRuntimeException
create(int type, @NonNull String message)

Create the exception for the appropriate error type.

Public constructors

WebGpuRuntimeException

Added in 1.0.0-alpha02
public WebGpuRuntimeException(@NonNull String message)

Public methods

create

Added in 1.0.0-alpha02
public static final @NonNull WebGpuRuntimeException create(int type, @NonNull String message)

Create the exception for the appropriate error type.

Parameters
int type

The ErrorType.

@NonNull String message

A human-readable message describing the error.