Skip to content

Commit

Permalink
Merge pull request #13 from AwardWallet/master
Browse files Browse the repository at this point in the history
Thanks =)
  • Loading branch information
sl4mmer committed Apr 11, 2016
2 parents 96b9e3b + f925cc2 commit 920afbb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Transport.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: "
Expand Down
11 changes: 11 additions & 0 deletions TransportException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace phpcent;


use Exception;

class TransportException extends Exception
{

}

0 comments on commit 920afbb

Please sign in to comment.