public class SovrenException extends Exception
| Modifier and Type | Field and Description |
|---|---|
int |
HttpStatusCode
The HTTP Status Code of the response.
|
Exception |
InnerException
If this exception was caused by another exception, the root cause will be here.
|
String |
RequestBody
The JSON request body, will only have a value if
SovrenClient.ShowFullRequestBodyInExceptions is true |
okhttp3.Response |
RestResponse
The raw response from the API
|
String |
SovrenErrorCode
The Info.Code of the response.
|
String |
TransactionId
The Id of the transaction, use this when reporting errors to Sovren Support
|
| Constructor and Description |
|---|
SovrenException(String requestBody,
okhttp3.Response response,
ApiResponseInfo errorInfo) |
SovrenException(String requestBody,
okhttp3.Response response,
ApiResponseInfoLite errorInfo,
String transactionId) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic okhttp3.Response RestResponse
public int HttpStatusCode
public String SovrenErrorCode
public String TransactionId
public String RequestBody
SovrenClient.ShowFullRequestBodyInExceptions is truepublic Exception InnerException
public SovrenException(String requestBody, okhttp3.Response response, ApiResponseInfoLite errorInfo, String transactionId)
public SovrenException(String requestBody, okhttp3.Response response, ApiResponseInfo errorInfo)
Copyright © 2023. All rights reserved.