From bc19a315da3bb37b7fd2ed423c55bffff9e85a2a Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Fri, 27 Sep 2024 08:44:55 +0200 Subject: [PATCH] Add special Exception for JRPC Timeouts --- package.json | 2 +- packages-microsoft-prod.deb | Bin 4304 -> 0 bytes templates/CSharp/JRpcClient.cs | 7 ++++++- 3 files changed, 7 insertions(+), 2 deletions(-) delete mode 100644 packages-microsoft-prod.deb diff --git a/package.json b/package.json index d40174b..2f9b4d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/jrpcgen", - "version": "1.2.18", + "version": "1.2.19", "main": "lib/index.js", "license": "MIT", "packageManager": "yarn@3.1.1", diff --git a/packages-microsoft-prod.deb b/packages-microsoft-prod.deb deleted file mode 100644 index bdb822a5dbac07436955cb0bb1ced444a2e9abd8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4304 zcmai1c{J2*`?n-aJY=ivSxV0&V;eJxX@+4e4F)qP>tKv+W{hnti7aJLqLQT)DokaI zCq{&jEy-hlQX;ZsiHw==ujlFfe!p|x^Pczp+~<7Gb>G)@pZkyNoX>rIj-K%hA^I7E zynVdLp23=4mEB?h$J-vStzxeOa1Eg~b0wPj^LqjNmr$RkLPLZOt z{_A~hT^Rh=3mzb)G$EdUz`yJqM45n!_memvyl8!0g}NQ3J}1nnsTLhC3aTHAMg^H16jl|5{+|R^~;3xp0K2ZJ)YKf12=V<`T_!zK_xH>z+>4Jg2 z9Rz*%8@^+_!HGM!AaLS`u>Y={(M_R8_w$mD=vnH_6RK;ow}jgi6(L0ja32TZ_Ms<5 z%F7&EtseFKh`%!4n)O(6v$(jNXQt2^<`KxyDAD!@dQRXdU zWUhz?!AvSaqP=cI7qcoQ32tLlB|5ZSC{iB#lZNAcTxO}qsjTT#7MerlR;h#wN#pvO z*YUNd7xJGD*5v2)xl~^}LN`5|Sx0xgxp9zu!A3&NzT3>8e+m7BK8+dkw}R*_cSsNo4wv>yl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If zF)+h2kPaAsqCV9p6dP#+ft#H3*Frm;Ls4l4)L;`Ye{7gdh%Lwk4>mYw?SwUPrUdIp z_%P6>X4oi8-6#x_7NG|LNlM~rAG6G@*GBVJI P!+$jqjWzvuEd>1!c$?he diff --git a/templates/CSharp/JRpcClient.cs b/templates/CSharp/JRpcClient.cs index 444851e..d994699 100644 --- a/templates/CSharp/JRpcClient.cs +++ b/templates/CSharp/JRpcClient.cs @@ -103,7 +103,7 @@ public class JRpcClient else { this.Requests.Remove(id); - throw new JRpcException("Request Timeout"); + throw new JRpcTimeoutException(); } } @@ -149,3 +149,8 @@ public class JRpcException : Exception { public JRpcException(string message) : base(message) { } } + +public class JRpcTimeoutException : JRpcException +{ + public JRpcTimeoutException() : base("Request Timeout") { } +}