Packages

A client for connecting with GraphQL over Websockets following the graphql-ws conventions.

Current section

Files

Jump to
graphql_ws_client lib graphql_ws_client graphql_error.ex
Raw

lib/graphql_ws_client/graphql_error.ex

defmodule GraphQLWSClient.GraphQLError do
@moduledoc """
Exception that contains errors from a GraphQL query.
"""
defexception errors: []
@type t :: %__MODULE__{errors: [any]}
def message(%__MODULE__{} = exception) do
"GraphQL errors:\n\n" <> inspect(exception.errors, pretty: true)
end
end