We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70cb21e commit 66f4b51Copy full SHA for 66f4b51
core/pva/src/main/java/org/epics/pva/client/PVAChannel.java
@@ -86,8 +86,12 @@ PVAClient getClient()
86
ClientTCPHandler getTCP() throws Exception
87
{
88
final ClientTCPHandler copy = tcp.get();
89
+
90
+ // Channel Access reacts to read/write access while disconnected
91
+ // via IllegalStateException("Channel not connected.")
92
+ // Use the same exception, but add channel name
93
if (copy == null)
- throw new Exception("Channel '" + name + "' is not connected");
94
+ throw new IllegalStateException("Channel '" + name + "' is not connected");
95
return copy;
96
}
97
0 commit comments