Packages

A library that allows connecting to Freelancer game servers via an FLHook socket to run commands and receive events.

Current section

Files

Jump to
fl_hook_client lib fl_hook command_error.ex
Raw

lib/fl_hook/command_error.ex

defmodule FLHook.CommandError do
@moduledoc """
An error indicating a command returned unsuccessfully.
"""
defexception [:detail]
@type t :: %__MODULE__{detail: String.t()}
def message(error) do
"Command error: #{error.detail}"
end
end