Package net.dona.doip.client
Class DoipException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.dona.doip.client.DoipException
- All Implemented Interfaces:
Serializable
An exception thrown by
DoipClient when something goes wrong such as an unexpected status code returned for an operation.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDoipException(com.google.gson.JsonElement response) DoipException(String message) DoipException(String statusCode, com.google.gson.JsonElement response) DoipException(String statusCode, com.google.gson.JsonElement response, Throwable cause) DoipException(String statusCode, String message) DoipException(String statusCode, String message, Throwable cause) DoipException(Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonElementGets the status code returned by the operation, if available.static StringmessageForResponse(com.google.gson.JsonElement response) static com.google.gson.JsonElementresponseForMessage(String message) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DoipException
-
DoipException
public DoipException(com.google.gson.JsonElement response) -
DoipException
-
DoipException
-
DoipException
-
DoipException
-
DoipException
-
-
Method Details
-
getStatusCode
Gets the status code returned by the operation, if available.- Returns:
- the status code returned by the operation, if available
-
getResponse
public com.google.gson.JsonElement getResponse() -
messageForResponse
-
responseForMessage
-