RequiresAction

data class RequiresAction(val did: Did?, val action: Action, val reason: String) : DidException

Exception thrown when a DID operation requires additional action (ACTION state).

According to the DID Registration specification, some operations may return an ACTION state requiring user interaction (e.g., redirect, sign, wait). This exception is thrown to allow the caller to handle the action appropriately.

Parameters

did

The DID being operated on (if available)

action

The action details from the registration response

reason

Human-readable reason for the action requirement

Constructors

Link copied to clipboard
constructor(did: Did?, action: Action, reason: String)

Properties

Link copied to clipboard
Link copied to clipboard
open override val cause: Throwable?
Link copied to clipboard
open override val code: String
Link copied to clipboard
open override val context: Map<String, Any?>
Link copied to clipboard
val did: Did?
Link copied to clipboard
open override val message: String
Link copied to clipboard

Functions

Link copied to clipboard

Extension function to convert any Throwable to a DidException.