Packages

A blazing fast, resilient, and easy-to-use HTTP client for Elixir

Current section

Files

Jump to
quiver lib quiver error quic_transport_error.ex
Raw

lib/quiver/error/quic_transport_error.ex

defmodule Quiver.Error.QUICTransportError do
@moduledoc """
Connection-level error post-handshake (RFC 9000 Section 20 / RFC 9114 Section 8).
Unrecoverable: the connection is dead and retrying immediately is unlikely
to help.
"""
use Splode.Error, fields: [:code, :reason], class: :unrecoverable
@type t :: Splode.Error.t()
def message(%{code: code, reason: reason}) do
"QUIC transport error: code=0x#{Integer.to_string(code, 16)} reason=#{inspect(reason)}"
end
end