Current section

Files

Jump to
tai lib tai service_unavailable_error.ex
Raw

lib/tai/service_unavailable_error.ex

defmodule Tai.ServiceUnavailableError do
@moduledoc """
Module which represents errors when the service is responding that they
are unavailable
e.g. HTTP 503
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503
"""
@type t :: %Tai.ServiceUnavailableError{reason: String.t()}
@enforce_keys [:reason]
defstruct [:reason]
end