Add special Exception for JRPC Timeouts

This commit is contained in:
Fabian Stamm 2024-09-27 08:44:55 +02:00
parent 4465c62163
commit bc19a315da
3 changed files with 7 additions and 2 deletions

View File

@ -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",

Binary file not shown.

View File

@ -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") { }
}