From 7ba6d351a7cadc1e84b85380a4999f8845dda1f3 Mon Sep 17 00:00:00 2001 From: Michael Oborne Date: Mon, 13 May 2024 09:51:08 +1000 Subject: [PATCH] CommsInjection: make exception type more specific --- ExtLibs/Comms/CommsInjection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExtLibs/Comms/CommsInjection.cs b/ExtLibs/Comms/CommsInjection.cs index 31c2b3132e..2fbdb26955 100644 --- a/ExtLibs/Comms/CommsInjection.cs +++ b/ExtLibs/Comms/CommsInjection.cs @@ -60,7 +60,7 @@ public int Read(byte[] buffer, int offset, int count) { Thread.Sleep(1); if (counttimeout > ReadTimeout) - throw new Exception("CommsInjection Timeout on read"); + throw new TimeoutException("CommsInjection Timeout on read"); counttimeout++; }