PHP Класс Essence\Http\Exception

Наследование: extends Exception
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_messages array Thanks to Hinnerk Brügmann (http://www.multiasking.com/2011/05/http-error-codes-as-php-array/).
$_url string Error URL.

Открытые методы

Метод Описание
__construct ( string $url, integer $code, Exception $Previous = null ) Constructs the exception with the given HTTP status code, and the URL that triggered the error.
url ( ) : string Returns the URL that triggered the error.

Описание методов

__construct() публичный Метод

Constructs the exception with the given HTTP status code, and the URL that triggered the error.
public __construct ( string $url, integer $code, Exception $Previous = null )
$url string URL.
$code integer HTTP status code.
$Previous Exception Previous exception.

url() публичный Метод

Returns the URL that triggered the error.
public url ( ) : string
Результат string URL.

Описание свойств

$_messages защищенное свойство

Thanks to Hinnerk Brügmann (http://www.multiasking.com/2011/05/http-error-codes-as-php-array/).
protected array $_messages
Результат array

$_url защищенное свойство

Error URL.
protected string $_url
Результат string