Elidactyl.Error (elidactyl v0.6.18)
Error struct that contains response from pterodactyl panel.
Link to this section Summary
Functions
Makes Jason encode error
Makes error struct from ecto changeset
Makes response parsing error
Link to this section Types
Specs
Link to this section Functions
Link to this function
encode_error(error, details \\ %{})
Specs
encode_error(Jason.EncodeError.t() | Exception.t(), map()) :: t()
Makes Jason encode error
Link to this function
from_changeset(changeset, type \\ :validation_error, msg \\ nil)
Specs
from_changeset(Ecto.Changeset.t(), atom(), String.t() | nil) :: t()
Makes error struct from ecto changeset
Link to this function
invalid_response(details \\ %{})
Specs
Makes response parsing error
Link to this function