Class ServiceResponseException
The exception that is thrown when the service returns unsuccessful
HTTP response.
Namespace: Oracle.NoSQL.SDK
Assembly: Oracle.NoSQL.SDK.dll
Syntax
public class ServiceResponseException : NoSQLException
Remarks
This exception allows you to access HTTP status code and HTTP status message as well as the server response message sent in the body of the HTTP response.
Whether this exception is retryable depends on the HTTP status code. Retryable status codes are with values 500 and above and include the following:
Constructors
Name | Description |
---|---|
ServiceResponseException() | Initializes a new instance of ServiceResponseException. |
ServiceResponseException(HttpStatusCode, String, String) | Initializes a new instance of ServiceResponseException with the HTTP status code, HTTP status message and HTTP response message. |
ServiceResponseException(String) | Initializes a new instance of ServiceResponseException with the message that describes the current exception. |
ServiceResponseException(String, Exception) | Initializes a new instance of ServiceResponseException with the message that describes the current exception and an inner exception. |
Properties
Name | Description |
---|---|
IsRetryable | Gets the value indicating whether the operation that has thrown this exception may be retried. |
ResponseMessage | Gets the service response message. |
StatusCode | Gets the HTTP status code. |
StatusMessage | Gets the HTTP status message. |