Skip to content

Commit

Permalink
Merge branch 'compwright-exception'
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsey committed Nov 22, 2016
2 parents eac942d + 2420aa5 commit c62f921
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
10 changes: 9 additions & 1 deletion lib/Sp_CurlException.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<?php
/**
* CURL ShootProof PHP SDK exception.
*
* To find more information and for documentation of the API please
* visit http://developer.shootproof.com
*/
class Sp_CurlException extends Sp_Exception
{

class Sp_CurlException extends Sp_Exception {}
}
2 changes: 1 addition & 1 deletion lib/Sp_Exception.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

/**
* Base ShootProof PHP SDK exception.
*
Expand All @@ -26,6 +25,7 @@ class Sp_Exception extends Exception
*/
public function __construct($msg, $code = 0, $responseBody = null)
{
parent::__construct($msg, $code);
$this->_responseBody = $responseBody;
}

Expand Down
10 changes: 9 additions & 1 deletion lib/Sp_NoResponseException.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<?php
/**
* Empty response ShootProof PHP SDK exception.
*
* To find more information and for documentation of the API please
* visit http://developer.shootproof.com
*/
class Sp_NoResponseException extends Sp_Exception
{

class Sp_NoResponseException extends Sp_Exception {}
}

0 comments on commit c62f921

Please sign in to comment.