Skip to content

StorageProvider: Wrap parser exceptions with ParseError at facade boundary #8

@diberry

Description

@diberry

Context

Flight's Phase 2 review found that ParseError and ProviderError are declared in the StateError hierarchy but never thrown. IO parsers delegate to existing functions that throw generic Error objects, so callers can't discriminate parse failures using instanceof ParseError.

What to do

At the facade boundary (in collections.ts and handles.ts), catch parser exceptions and wrap them with ParseError for consistent error discrimination.

Branch

Work should be done on diberry/sa-phase1-interface

Severity

Nice-to-have (Phase 3 enhancement)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions