Package org.onyx.exception
Class JSONException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.onyx.exception.ChainException
org.onyx.exception.JSONException
- All Implemented Interfaces:
Serializable
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJSONException(String message) Default constructor.JSONException(String message, String requestId) Initializes exception with its message and requestId attributes. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
requestId
Unique indentifier of the request to the server.
-
-
Constructor Details
-
JSONException
Default constructor. -
JSONException
Initializes exception with its message and requestId attributes. Use this constructor in context of an API call.- Parameters:
message- error messagerequestId- unique identifier of the request
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-