Add special Exception for JRPC Timeouts
This commit is contained in:
parent
4465c62163
commit
bc19a315da
@ -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.
@ -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") { }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user