Skip to content

Commit

Permalink
Update ShopeeException.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ductran95 authored Aug 28, 2024
1 parent 6f5253a commit ecd7d98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/JustCSharp.ShopeeSDK/Exceptions/ShopeeException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,21 @@ public ShopeeException(RestRequest request = null, RestResponse response = null)
{
Request = request;
Response = response;
AppendRequestData();
}

public ShopeeException(string message, RestRequest request = null, RestResponse response = null) : base(message)
{
Request = request;
Response = response;
AppendRequestData();
}

public ShopeeException(string message, Exception innerException, RestRequest request = null, RestResponse response = null) : base(message, innerException)
{
Request = request;
Response = response;
AppendRequestData();
}

protected void AppendRequestData()
Expand All @@ -49,4 +52,4 @@ protected void AppendRequestData()
Data[nameof(Response.ResponseUri)] = Response.ResponseUri;
}
}
}
}

0 comments on commit ecd7d98

Please sign in to comment.