Class JSONException

All Implemented Interfaces:
Serializable

public class JSONException extends ChainException
JSONException should be very rare, and will only arise if there is a bug in the Onyx Mesh API, or if the upstream server is spoofing common Onyx Mesh API response headers.
See Also:
  • Field Details

    • requestId

      @Expose public String requestId
      Unique indentifier of the request to the server.
  • Constructor Details

    • JSONException

      public JSONException(String message)
      Default constructor.
    • JSONException

      public JSONException(String message, String requestId)
      Initializes exception with its message and requestId attributes. Use this constructor in context of an API call.
      Parameters:
      message - error message
      requestId - unique identifier of the request
  • Method Details