Types

Link copied to clipboard
class EventOverflow(operation: String, diagnosticId: Long?, message: String) : OnyxFailure

A lossless event stream could not accept another event.

Link copied to clipboard
class FirmwareRejected(operation: String, diagnosticId: Long?, message: String, cause: Throwable? = null) : OnyxFailure

Firmware rejected the operation or returned an error.

Link copied to clipboard
class HiddenApiDenied(operation: String, diagnosticId: Long?, message: String, cause: Throwable? = null) : OnyxFailure

Access to a required hidden Android API was denied.

Link copied to clipboard
class InvalidArgument(operation: String, message: String) : OnyxFailure

A caller supplied an invalid argument.

Link copied to clipboard
class InvalidState(operation: String, diagnosticId: Long?, message: String) : OnyxFailure

The operation is invalid for the current object or firmware state.

Link copied to clipboard
class LeaseUnavailable(operation: String, diagnosticId: Long?, message: String) : OnyxFailure

Another owner holds a required process-wide firmware lease.

Link copied to clipboard
class NativeRendererFailure(operation: String, diagnosticId: Long?, message: String, cause: Throwable? = null) : OnyxFailure

The native ink renderer failed to create, process, or release a stroke.

Link copied to clipboard
class SurfaceChanged(operation: String, diagnosticId: Long?, message: String) : OnyxFailure

The rendering surface generation changed during an operation.

Link copied to clipboard
class SurfaceUnavailable(operation: String, diagnosticId: Long?, message: String) : OnyxFailure

A usable rendering surface was not available.

Link copied to clipboard
class TimedOut(operation: String, diagnosticId: Long?, message: String, cause: Throwable? = null) : OnyxFailure

The operation did not reach its completion boundary before its deadline.

Link copied to clipboard
class UnsupportedCapability(operation: String, diagnosticId: Long?, message: String) : OnyxFailure

A required capability is unsupported by the current device or firmware.

Link copied to clipboard
class WrongThread(operation: String, diagnosticId: Long?, message: String) : OnyxFailure

The operation was invoked from an unsupported thread.

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

Identifier in com.onyx.android.sdk.ktx.diagnostics.OnyxDiagnostics, or null when no diagnostic was recorded.

Link copied to clipboard
open val message: String?
Link copied to clipboard

Stable name of the operation that failed.