diff --git a/ShipEngine/Models/ShipEngineException.cs b/ShipEngine/Models/ShipEngineException.cs index a9adc6a7..5010393b 100644 --- a/ShipEngine/Models/ShipEngineException.cs +++ b/ShipEngine/Models/ShipEngineException.cs @@ -13,8 +13,8 @@ public class ShipEngineException( ErrorSource errorSource = ErrorSource.Shipengine, ErrorType errorType = ErrorType.System, ErrorCode errorCode = ErrorCode.Unspecified, - HttpResponseMessage? responseMessage = null, - string? requestID = null) + string? requestID = null, + HttpResponseMessage? responseMessage = null) : Exception(message) { /// diff --git a/ShipEngine/PublicAPI.Shipped.txt b/ShipEngine/PublicAPI.Shipped.txt index a6e070f2..470c837f 100644 --- a/ShipEngine/PublicAPI.Shipped.txt +++ b/ShipEngine/PublicAPI.Shipped.txt @@ -1202,7 +1202,7 @@ ShipEngineSDK.ShipEngineException.ErrorType.set -> void ShipEngineSDK.ShipEngineException.RequestId.get -> string? ShipEngineSDK.ShipEngineException.ResponseMessage.get -> System.Net.Http.HttpResponseMessage? ShipEngineSDK.ShipEngineException.ResponseMessage.set -> void -ShipEngineSDK.ShipEngineException.ShipEngineException(string! message, ShipEngineSDK.ErrorSource errorSource = ShipEngineSDK.ErrorSource.Shipengine, ShipEngineSDK.ErrorType errorType = ShipEngineSDK.ErrorType.System, ShipEngineSDK.ErrorCode errorCode = ShipEngineSDK.ErrorCode.Unspecified, System.Net.Http.HttpResponseMessage? responseMessage = null, string? requestID = null) -> void +ShipEngineSDK.ShipEngineException.ShipEngineException(string! message, ShipEngineSDK.ErrorSource errorSource = ShipEngineSDK.ErrorSource.Shipengine, ShipEngineSDK.ErrorType errorType = ShipEngineSDK.ErrorType.System, ShipEngineSDK.ErrorCode errorCode = ShipEngineSDK.ErrorCode.Unspecified, string? requestID = null, System.Net.Http.HttpResponseMessage? responseMessage = null) -> void ShipEngineSDK.ShipEngineExtensions ShipEngineSDK.ShipEngineMock ShipEngineSDK.ShipEngineMock.ShipEngineMock() -> void diff --git a/ShipEngine/ShipEngineClient.cs b/ShipEngine/ShipEngineClient.cs index 68857e0d..b6a25afb 100644 --- a/ShipEngine/ShipEngineClient.cs +++ b/ShipEngine/ShipEngineClient.cs @@ -108,8 +108,8 @@ private async Task DeserializedResultOrThrow(HttpResponseMessage response) error.ErrorSource, error.ErrorType, error.ErrorCode, - response, - deserializedError.RequestId + deserializedError.RequestId, + response ); } @@ -210,8 +210,8 @@ private async Task WaitAndRetry(HttpResponseMessage? response, Config config, Sh ErrorSource.Shipengine, ErrorType.System, ErrorCode.Timeout, - ex.ResponseMessage, - ex.RequestId + ex.RequestId, + ex.ResponseMessage ); }