Class MirrorNodeHttpException

All Implemented Interfaces:
Serializable

final class MirrorNodeHttpException extends HttpTransportException
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 Details

  • 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