Packages

Elixir build system and development runtime for Rust UI applications.

Current section

Files

Jump to
rekindle lib rekindle toolchain error.ex
Raw

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