You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
510 B
PHP
25 lines
510 B
PHP
<?php
|
|
|
|
namespace BusinessLogic\Exceptions;
|
|
|
|
|
|
use Exception;
|
|
|
|
class ApiFriendlyException extends \BaseException {
|
|
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);
|
|
}
|
|
|
|
} |