Skip to content

Commit

Permalink
reorder shipengine exception to preserve preexisting argument position
Browse files Browse the repository at this point in the history
  • Loading branch information
jpill committed Jun 28, 2024
1 parent 05bbfa7 commit 55261e5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ShipEngine/Models/ShipEngineException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion ShipEngine/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions ShipEngine/ShipEngineClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ private async Task<T> DeserializedResultOrThrow<T>(HttpResponseMessage response)
error.ErrorSource,
error.ErrorType,
error.ErrorCode,
response,
deserializedError.RequestId
deserializedError.RequestId,
response
);
}

Expand Down Expand Up @@ -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
);
}

Expand Down

0 comments on commit 55261e5

Please sign in to comment.