Current section
Files
Jump to
Current section
Files
lib/rekindle/toolchain/error.ex
defmodule Rekindle.Toolchain.Error do
@moduledoc """
Reports Cargo or pinned Web tool discovery and installation failures.
"""
@enforce_keys [:kind, :message]
defexception [:kind, :message, output: ""]
@type t :: %__MODULE__{kind: atom(), message: String.t(), output: String.t()}
@spec new(atom(), String.t(), keyword()) :: t()
@doc false
def new(kind, message, options \\ []) do
struct!(__MODULE__, Keyword.merge([kind: kind, message: message], options))
end
end