java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.hedera.hashgraph.sdk.HttpTransportException
com.hedera.hashgraph.sdk.MirrorNodeHttpException
- All Implemented Interfaces:
Serializable
A failure raised by the mirror node REST adapter rather than by a transport.
Two identifiers are its own: HttpTransportErrorKind.RETRIES_EXHAUSTED_ERROR when a
retryable status survived every attempt, and HttpTransportErrorKind.DEADLINE_EXCEEDED_ERROR
when the call's total deadline elapsed. The difference matters to a caller deciding whether to raise
requestTimeout or go and look at the node.
Carries the last response where there was one, so the message can name what the mirror node actually said.
-
Constructor Summary
ConstructorsConstructorDescriptionMirrorNodeHttpException(HttpTransportErrorKind kind, String message, @Nullable HttpResponse lastResponse) -
Method Summary
Modifier and TypeMethodDescription(package private) @Nullable HttpResponseExtract the last response received, if any.Methods inherited from class com.hedera.hashgraph.sdk.HttpTransportException
getKind, isRetryableMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MirrorNodeHttpException
MirrorNodeHttpException(HttpTransportErrorKind kind, String message, @Nullable HttpResponse lastResponse)
-
-
Method Details
-
getLastResponse
@Nullable HttpResponse getLastResponse()Extract the last response received, if any.- Returns:
- the last response, or null if no response was ever received
-