CommandException

class CommandException(val code: ErrorCode, val detail: String?, val driverMessage: String?, val operation: String, val serial: String, val selector: String?, val requestId: Long, val generation: Long, val durationMs: Long, val narrowing: SelectorNarrowing? = null, val appDeath: AppDeath? = null) : TapException(source)

A driver command's outcome was error. code is the protocol error code; detail refines it (e.g. NOT_FOUND/END_REACHED); TRANSPORT_LOST/INDETERMINATE carry the transmission state in detail. Never retry a mutation on INDETERMINATE. requestId and generation identify the command in the driver and daemon logs.

Constructors

Link copied to clipboard
constructor(code: ErrorCode, detail: String?, driverMessage: String?, operation: String, serial: String, selector: String?, requestId: Long, generation: Long, durationMs: Long, narrowing: SelectorNarrowing? = null, appDeath: AppDeath? = null)

Properties

Link copied to clipboard

For AUT_CRASHED / AUT_ANR: the app's death that replaced the code; null otherwise.

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

The driver's human-readable explanation, when it gave one.

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

Why the selector found no node, read on the device after a NOT_FOUND; null otherwise.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Partial scan evidence, without replacing the original command error type/code.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard