GlassesError

sealed class GlassesError : Exception

Error types returned inside Result by GlassesClient operations.

SDK methods do not throw except kotlin.coroutines.cancellation.CancellationException. New subtypes may be added in minor releases; use an else branch when matching.

Inheritors

Types

Link copied to clipboard
data object Busy : GlassesError

A previous operation is still in flight; retry after it completes.

Link copied to clipboard

The client is not connected; call GlassesClient.connect first or reconnect after loss.

Link copied to clipboard

A required runtime permission is missing; exact permissions depend on the device module.

Link copied to clipboard
data class Timeout(val operation: String) : GlassesError

The named operation exceeded its deadline; retrying is reasonable.

Link copied to clipboard
class Transport(val detail: String, cause: Throwable? = null) : GlassesError

Device- or link-level failure.

Link copied to clipboard
data class Unsupported(val detail: String) : GlassesError

This device/capability combination cannot perform the operation; check DeviceCapabilities first.

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?