Module errors

Source
Expand description

§Structured Error Types

Comprehensive error handling for AT Protocol identity operations using structured error types with the thiserror library. All errors follow the project convention of prefixed error codes with descriptive messages.

§Error Categories

  • WebDIDError: Errors specific to did:web operations including URL conversion and document fetching
  • ConfigError: Configuration and environment variable related errors
  • ResolveError: Handle and DID resolution errors including DNS/HTTP failures and conflicts
  • PLCDIDError: PLC directory communication and document parsing errors

§Error Format

All errors use the standardized format: error-{domain}-{number} {message}: {details}

Enums§

ConfigError
Error types that can occur when working with configuration
KeyError
Error types that can occur when working with cryptographic keys
PLCDIDError
Error types that can occur when working with PLC DIDs
ResolveError
Error types that can occur when resolving AT Protocol identities
WebDIDError
Error types that can occur when working with Web DIDs