PHP Класс SimpleSAML_Error_Error, simplesamlphp

Автор: Olav Morken, UNINETT AS.
Наследование: extends SimpleSAML_Error_Exception
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$httpCode integer The http code.
$includeTemplate string | null Name of custom include template for the error.

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

Метод Описание
__construct ( mixed $errorCode, Exception $cause = null, integer | null $httpCode = null ) Constructor for this error.
getDictDescr ( ) : string Retrieve the error description tag in dictionary.
getDictTitle ( ) : string Retrieve the error title tag in dictionary.
getErrorCode ( ) : string Retrieve the error code given when throwing this error.
getParameters ( ) : array Retrieve the error parameters given when throwing this error.
show ( ) Display this error.

Защищенные методы

Метод Описание
saveError ( ) : array Save an error report.
setHTTPCode ( ) Set the HTTP return code for this error.

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

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

The error can either be given as a string, or as an array. If it is an array, the first element in the array (with index 0), is the error code, while the other elements are replacements for the error text.
public __construct ( mixed $errorCode, Exception $cause = null, integer | null $httpCode = null )
$errorCode mixed One of the error codes defined in the errors dictionary.
$cause Exception The exception which caused this fatal error (if any). Optional.
$httpCode integer | null The HTTP response code to use. Optional.

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

Retrieve the error description tag in dictionary.
public getDictDescr ( ) : string
Результат string The error description tag.

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

Retrieve the error title tag in dictionary.
public getDictTitle ( ) : string
Результат string The error title tag.

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

Retrieve the error code given when throwing this error.
public getErrorCode ( ) : string
Результат string The error code.

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

Retrieve the error parameters given when throwing this error.
public getParameters ( ) : array
Результат array The parameters.

saveError() защищенный Метод

Save an error report.
protected saveError ( ) : array
Результат array The array with the error report data.

setHTTPCode() защищенный Метод

This should be overridden by subclasses who want a different return code than 500 Internal Server Error.
protected setHTTPCode ( )

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

This method displays a standard SimpleSAMLphp error page and exits.
public show ( )

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

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

The http code.
protected int $httpCode
Результат integer

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

Name of custom include template for the error.
protected string|null $includeTemplate
Результат string | null