Package org.eclipse.microprofile.graphql
Class GraphQLException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.microprofile.graphql.GraphQLException
- All Implemented Interfaces:
Serializable
A GraphQLException is used to pass error information back to the client. Instances of GraphQLException and it's
subclasses will pass the
message
field back to the client. The optional ExceptionType
may
also be specified.
While it is expected that MP GraphQL implementations will return the message to the client, implementations must not
return the stack trace not the cause to the client.- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionGraphQLException
(Object partialResults) GraphQLException
(String message) GraphQLException
(String message, Object partialResults) GraphQLException
(String message, Throwable cause) GraphQLException
(String message, Throwable cause, Object partialResults) GraphQLException
(String message, Throwable cause, GraphQLException.ExceptionType type) GraphQLException
(String message, GraphQLException.ExceptionType type) GraphQLException
(Throwable cause) GraphQLException
(Throwable cause, Object partialResults) GraphQLException
(Throwable cause, GraphQLException.ExceptionType type) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
GraphQLException
public GraphQLException() -
GraphQLException
-
GraphQLException
-
GraphQLException
-
GraphQLException
-
GraphQLException
-
GraphQLException
-
GraphQLException
-
GraphQLException
-
GraphQLException
-
GraphQLException
-
GraphQLException
-
-
Method Details
-
getPartialResults
-
setPartialResults
-
getExceptionType
-
setExceptionType
-