diff --git a/Transport.php b/Transport.php index f6e7c69..e90af5f 100644 --- a/Transport.php +++ b/Transport.php @@ -41,7 +41,7 @@ public function communicate($host, $data) curl_close($ch); if (empty($headers["http_code"]) || ($headers["http_code"] != 200)) { - throw new \Exception("Response code: " + throw new TransportException ("Response code: " . $headers["http_code"] . PHP_EOL . "Body: " diff --git a/TransportException.php b/TransportException.php new file mode 100644 index 0000000..43e9f07 --- /dev/null +++ b/TransportException.php @@ -0,0 +1,11 @@ +