Skip to content

Audit SessionError, CreateRequestError, and EncapsulationError internal variants #749

Open

Description

@spacebear21
  • process_response methods return inconsistent error types when POSTing vs. GETting, specifically: EncapsulationError vs. ResponseError for send and SessionError vs. Error for receive.
  • There are four duplicated variants between InternalEncapsulationError and InternalSessionError.
    • Also, EncapsulationError is a misnomer since it afaict it's exclusively raised when decapsulating responses.
    • The Hpke variant has nothing to do with en/decapsulation.

Originally posted by @spacebear21 in #660 (comment)

There are other variants that appear duplicated between InternalCreateRequestError and InternalSessionError (namely Expired, Hpke, OhttpEncapsulation and potentially Url/ParseUrl).

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions