PHP Класс Drahak\Restful\Application\BadRequestException

Автор: Drahomír Hanák
Наследование: extends Nette\Application\BadRequestException
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$errors Some other errors appear in request

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

Метод Описание
forbidden ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException Is thrown when access to this resource is forbidden
gone ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException Is thrown when this resource is not no longer available (e.g. with new API version)
methodNotSupported ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException Is thrown when request method (e.g. POST or PUT) is not allowed for this resource
notFound ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException Is thrown when resource's not found
tooManyRequests ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException Is thrown to reject request due to rate limiting
unauthorized ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException Is thrown when trying to reach secured resource without authentication
unprocessableEntity ( array $errors, string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException Is thrown when validation problem appears
unsupportedMediaType ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException Is thrown when incorrect (or unknown) Content-Type was provided in request

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

forbidden() публичный статический Метод

Is thrown when access to this resource is forbidden
public static forbidden ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException
$message string
$previous Exception | Throwable
Результат BadRequestException

gone() публичный статический Метод

Is thrown when this resource is not no longer available (e.g. with new API version)
public static gone ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException
$message string
$previous Exception | Throwable
Результат BadRequestException

methodNotSupported() публичный статический Метод

Is thrown when request method (e.g. POST or PUT) is not allowed for this resource
public static methodNotSupported ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException
$message string
$previous Exception | Throwable
Результат BadRequestException

notFound() публичный статический Метод

Is thrown when resource's not found
public static notFound ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException
$message string
$previous Exception | Throwable
Результат BadRequestException

tooManyRequests() публичный статический Метод

Is thrown to reject request due to rate limiting
public static tooManyRequests ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException
$message string
$previous Exception | Throwable
Результат BadRequestException

unauthorized() публичный статический Метод

Is thrown when trying to reach secured resource without authentication
public static unauthorized ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException
$message string
$previous Exception | Throwable
Результат BadRequestException

unprocessableEntity() публичный статический Метод

Is thrown when validation problem appears
public static unprocessableEntity ( array $errors, string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException
$errors array during validation
$message string
$previous Exception | Throwable
Результат BadRequestException

unsupportedMediaType() публичный статический Метод

Is thrown when incorrect (or unknown) Content-Type was provided in request
public static unsupportedMediaType ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException
$message string
$previous Exception | Throwable
Результат BadRequestException

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

$errors публичное свойство

Some other errors appear in request
public $errors