Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Error handling.
Synopsis
- data Error = Error {}
- data Path
- data ResolverException = forall e.Exception e => ResolverException e
- data Response a = Response {}
- type ResponseEventStream m a = ConduitT () (Response a) m ()
- parseError :: (Applicative f, Serialize a) => ParseErrorBundle Text Void -> f (Response a)
Documentation
GraphQL
error.
If an error can be associated to a particular field in the GraphQL result, it must contain an entry with the key path that details the path of the response field which experienced the error. This allows clients to identify whether a null result is intentional or caused by a runtime error.
data ResolverException Source #
Only exceptions that inherit from ResolverException
a cought by the
executor.
forall e.Exception e => ResolverException e |
Instances
Exception ResolverException Source # | |
Defined in Language.GraphQL.Error | |
Show ResolverException Source # | |
Defined in Language.GraphQL.Error showsPrec :: Int -> ResolverException -> ShowS # show :: ResolverException -> String # showList :: [ResolverException] -> ShowS # |
The server's response describes the result of executing the requested operation if successful, and describes any errors encountered during the request.
type ResponseEventStream m a = ConduitT () (Response a) m () Source #
Each event in the underlying Source Stream triggers execution of the subscription selection set. The results of the execution generate a Response Stream.
parseError :: (Applicative f, Serialize a) => ParseErrorBundle Text Void -> f (Response a) Source #
Wraps a parse error into a list of errors.