DeviceLostException


public final class DeviceLostException extends Exception


Exception thrown when a GPUDevice is lost and can no longer be used.

Summary

Public constructors

DeviceLostException(
    @NonNull GPUDevice device,
    int reason,
    @NonNull String message
)

Public methods

final @NonNull GPUDevice

The GPUDevice that was lost.

final int

The reason code indicating why the device was lost.

Public constructors

DeviceLostException

Added in 1.0.0-alpha01
public DeviceLostException(
    @NonNull GPUDevice device,
    int reason,
    @NonNull String message
)
Parameters
@NonNull GPUDevice device

The GPUDevice that was lost.

int reason

The reason code indicating why the device was lost.

@NonNull String message

A human-readable message describing the device loss.

Public methods

getDevice

Added in 1.0.0-alpha01
public final @NonNull GPUDevice getDevice()

The GPUDevice that was lost.

getReason

Added in 1.0.0-alpha01
public final int getReason()

The reason code indicating why the device was lost.