Example #1
0
 internal SovrenException(string requestBody, RestResponse response, ApiResponseInfoLite errorInfo, string transactionId)
     : base(errorInfo?.Message ?? "Invalid response object from API")
 {
     RestResponse    = response;
     HttpStatusCode  = response?.StatusCode ?? HttpStatusCode.InternalServerError;
     SovrenErrorCode = errorInfo?.Code ?? "Unknown Error";
     TransactionId   = transactionId;
     RequestBody     = requestBody;
 }
 internal SovrenIndexResumeException(RestResponse response, ApiResponseInfoLite errorInfo, string transactionId, ParseResumeResponse parseResponse)
     : base(response, errorInfo, transactionId, parseResponse)
 {
 }
 internal SovrenUsableResumeException(RestResponse response, ApiResponseInfoLite errorInfo, string transactionId, ParseResumeResponse parseResponse)
     : base(null, response, errorInfo, transactionId)
 {
     Response = parseResponse;
 }
Example #4
0
 internal SovrenProfessionNormalizationJobException(RestResponse response, ApiResponseInfoLite errorInfo, string transactionId, ParseJobResponse parseResponse)
     : base(response, errorInfo, transactionId, parseResponse)
 {
 }
Example #5
0
 internal SovrenGeocodeJobException(RestResponse response, ApiResponseInfoLite errorInfo, string transactionId, ParseJobResponse parseResponse)
     : base(response, errorInfo, transactionId, parseResponse)
 {
 }