Package org.stellar.sdk.exception
Class RequestTimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.stellar.sdk.exception.SdkException
org.stellar.sdk.exception.NetworkException
org.stellar.sdk.exception.RequestTimeoutException
- All Implemented Interfaces:
Serializable
Exception thrown when a request times out. This exception can be thrown in two cases:
- When the server returns an HTTP 504 (Gateway Timeout) status code, indicating that the server did not receive a timely response from an upstream server.
- When the client experiences a timeout while waiting for the server's response, even if the server has not explicitly returned a 504 status code.
- See Also:
-
Constructor Summary
ConstructorDescriptionRequestTimeoutException
(int code, String body) Constructs a new BadRequestException.RequestTimeoutException
(int code, String body, Problem problem) Constructs a new BadRequestException.RequestTimeoutException
(Throwable cause) Constructs a new BadRequestException. -
Method Summary
Methods inherited from class org.stellar.sdk.exception.NetworkException
getBody, getCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RequestTimeoutException
Constructs a new BadRequestException.- Parameters:
code
- The HTTP status code of the responsebody
- The raw body of the responseproblem
- The parsed problem details, may be null if parsing failed
-
RequestTimeoutException
Constructs a new BadRequestException.- Parameters:
code
- The HTTP status code of the responsebody
- The raw body of the response
-
RequestTimeoutException
Constructs a new BadRequestException.- Parameters:
cause
- The exception that caused this error
-
-
Method Details
-
getProblem
The parsed problem details, if available.
-