I am working on application that makes a request to a downstream service and want to identify if these fail due to a connection failure.
Currently using streams 1.0-M4, obtaining the connection with Http().outgoingConnection(address, port). When using the returned flow for a HttpRequest that should fail to connect it fails with a StreamTcpException("Connection failed."). Is this intentionally avoiding using the ConnectionException class and if so why is this beneficial? I want to avoid relying on the message text if possible.
I can't find any documentation in 1.0-M4 or 1.0-M5 for when the exceptions are thrown (looking at the ConnectionException is currently only thrown by the TcpListenStreamActor), so I want to check that I'm doing the right thing to identify these failures.
Thanks,
Stephen