Add special Exception for JRPC Timeouts
This commit is contained in:
parent
4465c62163
commit
bc19a315da
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hibas123/jrpcgen",
|
"name": "@hibas123/jrpcgen",
|
||||||
"version": "1.2.18",
|
"version": "1.2.19",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"packageManager": "yarn@3.1.1",
|
"packageManager": "yarn@3.1.1",
|
||||||
|
Binary file not shown.
@ -103,7 +103,7 @@ public class JRpcClient
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.Requests.Remove(id);
|
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 JRpcException(string message) : base(message) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class JRpcTimeoutException : JRpcException
|
||||||
|
{
|
||||||
|
public JRpcTimeoutException() : base("Request Timeout") { }
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user