Packages

GuardGen provides macro that can be used as guard test to generate type-checks.

Current section

Files

Jump to
guard_gen lib guard check_error.ex
Raw

lib/guard/check_error.ex

defmodule GuardGen.CheckError do
defexception args: nil, arity: nil, check: nil
def message(%__MODULE__{args: args, arity: arity, check: check}) do
"undefined or argument error on check #{check}/#{arity} with value #{args}"
end
end