TrustWeaveException
Base exception hierarchy for all TrustWeave operations.
All TrustWeave exceptions provide structured error codes and context for better error handling and debugging.
Design Note: This is an open class to allow domain-specific exception hierarchies (DidException, WalletException, BlockchainException, etc.) in other modules to extend it. Domain-specific exception classes are typically sealed for exhaustive handling within their respective domains.
Exception Hierarchy:
PluginException — plugin lifecycle errors (not found, init failed, etc.)
ProviderException — provider chain errors (none found, partial, all failed)
ConfigException — configuration errors (not found, read failed, invalid format)
SerializationException — JSON / serialization errors
Core generic exceptions (in this class) — validation, encoding, digest, etc.
Domain exceptions (in other modules) — DidException, WalletException, etc.
Inheritors
Constructors
Types
An operation exceeded its configured timeout.
Functions
Checks if the exception is configuration-related (i.e., an instance of ConfigException).
Checks if the exception is encoding/digest-related.
Checks if the exception is serialization/JSON-related (i.e., an instance of SerializationException).
Checks if the exception is plugin-related (i.e., an instance of PluginException).
Checks if the exception is provider-related (i.e., an instance of ProviderException).
Checks if the exception is validation-related.
Extension function to convert any Throwable to a TrustWeaveException.