Packages

Draft is a library for creating structs with type checking

Current section

Files

Jump to
draft lib draft exceptions.ex
Raw

lib/draft/exceptions.ex

defmodule Draft.InvalidValidatorError do
defexception file: nil, line: nil, validator: nil, sources: []
def message(exception) do
"#{Exception.format_file_line(exception.file, exception.line)}validator #{
inspect(exception.validator)
} from sources #{inspect(exception.sources)}"
end
end