Skip to content

[Bug] Add ability to obtain ApplicationError details with type hint #1262

Open

Description

@cretz

Describe the bug

For users of deserialized ApplicationError, today we only offer the deserialized details in raw Python form (e.g. dicts and such). For ApplicationErrors that are deserialized, we should make the details property lazy, have a property for obtaining the raw details (that only works if raw details were set on create, i.e. in deserialization situations), and have a method that lets you access a detail by index and type hint.

Activity

  1. added
    bug
    on Dec 29, 2025
  2. prateek11rai commented on Nov 28, 2026

    @prateek11rai
    Contributor

    Note

    🤖 claude-opus-5-5 on behalf of Prateek

    I opened #2171 for this. It follows the design in the description: details is decoded when first read, raw_details holds the payloads, and detail(index, type_hint) returns one detail as the given type.

    It also covers CancelledError, whose details are decoded the same way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions