Packages

Convert Abacus expression into Ecto DSL expressions, and use them for where, selects, order_by, group_by or having clauses.

Current section

Files

Jump to
abacus_sql lib errors undefined_function.ex
Raw

lib/errors/undefined_function.ex

defmodule AbacusSql.UndefinedFunctionError do
defexception [:function, :ctx, :argc]
def exception(values) do
struct(__MODULE__, Keyword.take(values, [:function, :ctx, :argc]))
end
def message(%__MODULE__{function: fun, argc: argc}) do
"Call to undefined function \"#{fun}/#{argc}\""
end
end