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 bdb822a..0000000 Binary files a/packages-microsoft-prod.deb and /dev/null differ 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") { } +}