Current section
Files
Jump to
Current section
Files
src/discord_gleam@internal@error.erl
-module(discord_gleam@internal@error).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export_type([discord_error/0]).
-if(?OTP_RELEASE >= 27).
-define(MODULEDOC(Str), -moduledoc(Str)).
-define(DOC(Str), -doc(Str)).
-else.
-define(MODULEDOC(Str), -compile([])).
-define(DOC(Str), -compile([])).
-endif.
?MODULEDOC(false).
-type discord_error() :: unknown_account |
empty_option_when_required |
{invalid_json, gleam@json:decode_error()} |
{invalid_dynamic_list, list(gleam@dynamic:decode_error())} |
{invalid_format, gleam@dynamic:decode_error()} |
{websocket_error, nil} |
{http_error, gleam@hackney:error()} |
{actor_error, gleam@otp@actor:start_error()} |
{nil_map_entry, nil} |
{bad_builder_properties, binary()} |
{unauthorized, binary()}.