Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
50.00% |
1 / 2 |
CRAP | |
75.00% |
3 / 4 |
Shopify\Exception\ApiException | |
0.00% |
0 / 1 |
|
50.00% |
1 / 2 |
2.06 | |
75.00% |
3 / 4 |
__construct | |
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
|||
getError | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
<?php | |
namespace Shopify\Exception; | |
/** | |
* Class ApiException | |
* @package Shopify\Exception | |
*/ | |
class ApiException extends \Exception | |
{ | |
/** | |
* @var string | |
* store error message | |
*/ | |
protected $message; | |
/** | |
* ApiException constructor. | |
* @param $message | |
* @param $code | |
*/ | |
function __construct($message,$code) | |
{ | |
$this->message = $message; | |
parent::__construct($message, $code); | |
} | |
/** | |
* @return string | |
* get error message | |
*/ | |
function getError() { | |
return $this->message; | |
} | |
} |