java.lang.Object
org.refcodes.component.AbstractConnectable
- Direct Known Subclasses:
AbstractConnectableAutomaton
The
AbstractConnectable
provides base functionality required by
connection related components.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static boolean
isThrownAsOfAlreadyClosed
(IOException aException) Tests whether the provided exception is thrown as of something already being closed.
-
Constructor Details
-
AbstractConnectable
public AbstractConnectable()
-
-
Method Details
-
isThrownAsOfAlreadyClosed
Tests whether the provided exception is thrown as of something already being closed. In some cases, when something is already closed and some (wrapper) method tries to close it (again), then no exception should be propagated. This is very implementation specific regarding the underlying JDK as we expect something like "Pipe closed", "Connection closed" or the like to be contained in the aMessage.- Parameters:
aException
- TheIOException
to be tested.- Returns:
- True in case we have an exception as of something to be closed was already caused, else false.
-