Package manifold.graphql.rt.api.request
Class GqlRequestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- manifold.graphql.rt.api.request.GqlRequestException
-
- All Implemented Interfaces:
Serializable
public class GqlRequestException extends RuntimeException
Thrown when a GraphQL request response contains errors. The errors wrap theGraphQLErrorvalues in the response as a type-safe list ofGqlErrorfromgetErrors(). The query result data, if available, is also type-safely accessible fromgetResult(Class).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GqlRequestException(manifold.rt.api.Bindings response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<GqlError>getErrors()StringgetMessage()<E> EgetResult(Class<E> resultType)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-