NRF SDK 0.9

Reference

ToolOperationException

Typed operation refusals and recovery of temporary presentations.

Usage context

ModulePackageSDK source
Kotlin/Nativenimbykotlin/src/nimby/ToolOperationException.kt

Public API for SDK 0.9.0-alpha.2. Each entry provides the Kotlin signature and its contract: what the value means, conditions of use and effects to understand. Choose imports from the module shown above.

Imports on this page
import nimby.ToolOperationException

ToolOperationException

nimby · class
class ToolOperationException(val status: Int, message: String) : IllegalStateException

Typed refusal of a tool operation. Distinguish isBusy from permanent errors; after an uncertain mutation, inspect the outcome instead of repeating the command.

ToolOperationException.status

nimby · val
val status: Int

SDK status code retained for diagnosis. Use isBusy for the known temporary case without treating all errors as temporary.

ToolOperationException.isBusy

nimby · val
val isBusy: Boolean

true for temporary status-12 refusal. A read or presentation may wait for a later callback; an uncertain write must not be replayed automatically.