public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { //IL_0014: Unknown result type (might be due to invalid IL or missing references) S3ErrorResponse s3ErrorResponse = S3ErrorResponseUnmarshaller.Instance.Unmarshall(context); AmazonS3Exception ex = new AmazonS3Exception(s3ErrorResponse.get_Message(), innerException, s3ErrorResponse.get_Type(), s3ErrorResponse.get_Code(), s3ErrorResponse.get_RequestId(), statusCode, s3ErrorResponse.Id2, s3ErrorResponse.AmzCfId); ex.Region = s3ErrorResponse.Region; if (s3ErrorResponse.ParsingException != null) { string responseBody = context.get_ResponseBody(); if (!string.IsNullOrEmpty(responseBody)) { ex.ResponseBody = responseBody; } } return(ex); }
public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { S3ErrorResponse errorResponse = S3ErrorResponseUnmarshaller.Instance.Unmarshall(context); return(new AmazonS3Exception(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode, errorResponse.Id2)); }