Class MirrorNodeErrorMessage

java.lang.Object
com.hedera.hashgraph.sdk.MirrorNodeErrorMessage

final class MirrorNodeErrorMessage extends Object
Turns a mirror node error response into something worth putting in an exception message.

Prefers the node's own envelope — _status.messages[].detail, then _status.messages[].message — over dumping the body, and truncates whatever is left.

  • Method Details

    • describe

      static String describe(HttpResponse response)
      Describe an error response.
      Parameters:
      response - the response the mirror node sent
      Returns:
      a short description, never null and never empty