Module errors

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 (web-1 to web-4): Errors specific to did:web operations including URL conversion and document fetching
  • ConfigError (config-1 to config-3): Configuration and environment variable related errors
  • ResolveError (resolve-1 to resolve-8): Handle and DID resolution errors including DNS/HTTP failures and conflicts
  • PLCDIDError (plc-1 to plc-2): PLC directory communication and document parsing errors
  • KeyError (key-1 to key-12): Cryptographic key operations including generation, parsing, signing, and validation
  • StorageError (storage-1 to storage-3): Storage operations including cache lock failures and data access errors

§Error Format

All errors use the standardized format: error-atproto-identity-{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
StorageError
Error types that can occur when working with storage operations
WebDIDError
Error types that can occur when working with Web DIDs