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

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