OperationTimedOut

data class OperationTimedOut(val operation: String, val timeout: String, val cause: Throwable? = null) : TrustWeaveException

An operation exceeded its configured timeout.

Thrown by facade operations whose return type cannot honestly express a timeout (e.g. a Boolean revocation result, where mapping a timeout to false would silently misreport an unknown outcome as "not revoked"). The underlying kotlinx.coroutines.TimeoutCancellationException is carried as cause; callers must treat the operation outcome as unknown, not failed.

Parameters

operation

Human-readable name of the operation that timed out

timeout

The configured timeout, rendered as a string (e.g. "10s")

Constructors

Link copied to clipboard
constructor(operation: String, timeout: String, cause: Throwable? = null)

Properties

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

Context map containing additional error information.

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

Functions

Link copied to clipboard

Checks if the exception is configuration-related (i.e., an instance of ConfigException).

Link copied to clipboard

Checks if the exception is encoding/digest-related.

Link copied to clipboard

Checks if the exception is serialization/JSON-related (i.e., an instance of SerializationException).

Link copied to clipboard

Checks if the exception is plugin-related (i.e., an instance of PluginException).

Link copied to clipboard

Checks if the exception is provider-related (i.e., an instance of ProviderException).

Link copied to clipboard

Checks if the exception is validation-related.

Link copied to clipboard

Extension function to convert any Throwable to a TrustWeaveException.