Class GraphQlTransportException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.graphql.client.GraphQlClientException
org.springframework.graphql.client.GraphQlTransportException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SubscriptionErrorException, WebSocketDisconnectedException
Exception raised by a
GraphQlTransport or used to wrap an exception
from a GraphQlTransport implementation.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGraphQlTransportException(@Nullable Throwable cause, GraphQlRequest request) Constructor with a default message.GraphQlTransportException(String message, @Nullable Throwable cause, GraphQlRequest request) Constructor with a given message. -
Method Summary
Methods inherited from class GraphQlClientException
getRequestMethods inherited from class NestedRuntimeException
contains, getMostSpecificCause, getRootCauseMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
GraphQlTransportException
Constructor with a default message.- Parameters:
cause- the original cause of the transport errorrequest- the request that failed at the transport level
-
GraphQlTransportException
Constructor with a given message.- Parameters:
message- the exception message to usecause- the original cause of the transport errorrequest- the request that failed at the transport level
-