Skip to content

Commit e025066

Browse files
committed
IllegalStateException when not connected
1 parent eab5d39 commit e025066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/pv/src/main/java/org/phoebus/pv/pva/PVA_PV.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public void write(final Object new_value) throws Exception
179179
// Perform a disconnect check right now to alert caller
180180
// of clearly disconnected channel
181181
if (isDisconnected(read()))
182-
throw new Exception("Channel '" + getName() + "' is not connected");
182+
throw new IllegalStateException("Channel '" + getName() + "' is not connected");
183183

184184
// The channel could still disconnect in the middle of the write,
185185
// the channel may be read-only or experience other errors

0 commit comments

Comments
 (0)