Packages

Wormwood is a tiny library to aid in testing GraphQL queries against an Absinthe schema. It allows you to test your query documents inside ExUnit test modules, and requires no HTTP requests to occur during testing.

Current section

Files

Jump to
wormwood lib errors loader_error.ex
Raw

lib/errors/loader_error.ex

defmodule WormwoodLoaderError do
@moduledoc """
An exception that is raised when Wormwood can't find or access a file
"""
defexception [:path, :reason]
def message(exception) do
"Wormwood failed to load the document at path: '#{exception.path}' due to: <#{
exception.reason
}>"
end
end