Class InvalidServiceResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.ibm.cloud.sdk.core.service.exception.ServiceResponseException
-
- com.ibm.cloud.sdk.core.service.exception.InvalidServiceResponseException
-
- All Implemented Interfaces:
java.io.Serializable
public class InvalidServiceResponseException extends ServiceResponseException
This exception class represents an invalid response body received from the server.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidServiceResponseException(okhttp3.Response response, java.lang.String message, java.lang.Throwable cause)
Instantiates a new exception that indicates a failure while processing the response received from the server for an otherwise successful operation.
-
Method Summary
-
Methods inherited from class com.ibm.cloud.sdk.core.service.exception.ServiceResponseException
getDebuggingInfo, getHeaders, getMessage, getResponseBody, getStatusCode
-
-
-
-
Constructor Detail
-
InvalidServiceResponseException
public InvalidServiceResponseException(okhttp3.Response response, java.lang.String message, java.lang.Throwable cause)
Instantiates a new exception that indicates a failure while processing the response received from the server for an otherwise successful operation.- Parameters:
response
- the HTTP responsemessage
- a message summarizing the error conditioncause
- the specific exception that was caught while processing the response
-
-