From c9b7f2255031568205d99775ee74c77029530ead Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Thu, 16 Feb 2017 11:36:56 +0100 Subject: [PATCH] Remove superfluous and undocumented ConnectionException --- README.md | 8 ++++++++ src/ConnectionException.php | 7 ------- src/TcpConnector.php | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 src/ConnectionException.php diff --git a/README.md b/README.md index 2b1346a..47b77e6 100644 --- a/README.md +++ b/README.md @@ -212,6 +212,14 @@ $tcpConnector = new React\SocketClient\TcpConnector($loop, array( ``` Note that this class only allows you to connect to IP-port-combinations. +If the given URI is invalid, does not contain a valid IP address and port +or contains any other scheme, it will reject with an +`InvalidArgumentException`: + +If the given URI appears to be valid, but connecting to it fails (such as if +the remote host rejects the connection etc.), it will reject with a +`RuntimeException`. + If you want to connect to hostname-port-combinations, see also the following chapter. ### DNS resolution diff --git a/src/ConnectionException.php b/src/ConnectionException.php deleted file mode 100644 index b5f9f47..0000000 --- a/src/ConnectionException.php +++ /dev/null @@ -1,7 +0,0 @@ -