Spikard.SnapshotError (spikard v0.17.0)

Copy Markdown

Possible errors while converting an Axum response into a snapshot.

Summary

Types

Body decompression failed.

Response header could not be decoded to UTF-8.

t()

Possible errors while converting an Axum response into a snapshot.

Functions

Returns the serde wire value this variant carries on the JSON boundary (see wire_variant_value in alef's naming module) -- distinct from the atom's Elixir spelling.

Types

decompression()

@type decompression() :: %{type: :decompression, value: String.t()}

Body decompression failed.

invalid_header()

@type invalid_header() :: %{type: :invalid_header, value: String.t()}

Response header could not be decoded to UTF-8.

t()

@type t() :: term()

Possible errors while converting an Axum response into a snapshot.

Functions

wire_value(value)

@spec wire_value(t()) :: String.t()

Returns the serde wire value this variant carries on the JSON boundary (see wire_variant_value in alef's naming module) -- distinct from the atom's Elixir spelling.