Current section
Files
Jump to
Current section
Files
src/ducky@error.erl
-module(ducky@error).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/ducky/error.gleam").
-export_type([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(" Error types for DuckDB operations.\n").
-type error() :: {connection_failed, binary()} |
{query_syntax_error, binary()} |
{timeout, integer()} |
{type_mismatch, binary(), binary()} |
{database_error, binary()}.