PHP 클래스 Drahak\Restful\Application\BadRequestException

저자: Drahomír Hanák
상속: extends Nette\Application\BadRequestException
파일 보기 프로젝트 열기: drahak/restful 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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