public class GraphQLException extends Exception
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.Modifier and Type | Class and Description |
---|---|
static class |
GraphQLException.ExceptionType |
Constructor and Description |
---|
GraphQLException() |
GraphQLException(GraphQLException.ExceptionType type) |
GraphQLException(Object partialResults) |
GraphQLException(String message) |
GraphQLException(String message,
GraphQLException.ExceptionType type) |
GraphQLException(String message,
Object partialResults) |
GraphQLException(String message,
Throwable cause) |
GraphQLException(String message,
Throwable cause,
GraphQLException.ExceptionType type) |
GraphQLException(String message,
Throwable cause,
Object partialResults) |
GraphQLException(Throwable cause) |
GraphQLException(Throwable cause,
GraphQLException.ExceptionType type) |
GraphQLException(Throwable cause,
Object partialResults) |
Modifier and Type | Method and Description |
---|---|
GraphQLException.ExceptionType |
getExceptionType() |
Object |
getPartialResults() |
void |
setExceptionType(GraphQLException.ExceptionType type) |
void |
setPartialResults(Object partialResults) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public GraphQLException()
public GraphQLException(String message)
public GraphQLException(Throwable cause)
public GraphQLException(GraphQLException.ExceptionType type)
public GraphQLException(String message, GraphQLException.ExceptionType type)
public GraphQLException(Throwable cause, GraphQLException.ExceptionType type)
public GraphQLException(String message, Throwable cause, GraphQLException.ExceptionType type)
public GraphQLException(Object partialResults)
public Object getPartialResults()
public void setPartialResults(Object partialResults)
public GraphQLException.ExceptionType getExceptionType()
public void setExceptionType(GraphQLException.ExceptionType type)
Copyright © 2019 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.