Skip to content

Add route-scoped transactions and error mapping guidance for Ktor #208

Description

@zantvoort

Storm already ships Ktor integration; the 1.13.0 milestone tightens it. This issue covers request-level ergonomics.

Two small pieces. First, a route-scoped transaction helper, so a whole route or call runs inside one transaction {} without boilerplate in every handler. Second, documented StatusPages recipes mapping Storm exceptions to HTTP responses (unique key violation to 409, missing row to 404, and so on). Ktor has no platform exception hierarchy to translate into, so unlike the Spring side this is guidance rather than translation.

Tasks:

  • Route/call-scoped transaction helper in storm-ktor
  • StatusPages recipes in the docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requestktorKtor integration

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions