2017-01-30 22:10:14 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace BusinessLogic\Exceptions;
|
|
|
|
|
|
|
|
|
|
|
|
use Exception;
|
|
|
|
|
2017-09-11 21:03:03 -04:00
|
|
|
class ApiFriendlyException extends \BaseException {
|
2017-01-30 22:10:14 -05:00
|
|
|
public $title;
|
|
|
|
public $httpResponseCode;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ApiFriendlyException constructor.
|
|
|
|
* @param string $message
|
|
|
|
* @param string $title
|
|
|
|
* @param int $httpResponseCode
|
|
|
|
*/
|
|
|
|
function __construct($message, $title, $httpResponseCode) {
|
|
|
|
$this->title = $title;
|
|
|
|
$this->httpResponseCode = $httpResponseCode;
|
|
|
|
|
|
|
|
parent::__construct($message);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|