Overview

Namespaces

  • SKJ
    • AppException
      • HTTP
      • Logic
      • Runtime

Exceptions

  • BadGatewayException
  • BadRequestException
  • ConflictException
  • ExpectationFailedException
  • FailedDependencyException
  • ForbiddenException
  • GatewayTimeoutException
  • GoneException
  • HttpVersionNotSupportedException
  • InternalServerErrorException
  • LengthRequiredException
  • LockedException
  • MethodNotAllowedException
  • NotAcceptableException
  • NotFoundException
  • NotImplementedException
  • PaymentRequiredException
  • PreconditionFailedException
  • ProxyAuthenticationRequiredException
  • RequestedRangeNotSatisfiableException
  • RequestEntityTooLargeException
  • RequestTimeoutException
  • RequestUriTooLongException
  • ServiceUnavailableException
  • UnauthorizedException
  • UnprocessableEntityException
  • UnsupportedMediaTypeException
  • Overview
  • Namespace
  • Class

Class BadRequestException

Bad Request HTTP層実行例外

リクエストの構文を間違えている事を示す例外です

◆詳細◆

  • 異常なパラメータが指定されたなど、リクエストの構文を間違えている場合に利用される
  • 他の4xx系エラーコードに適さないようなケースでも利用される
  • クライアントは未知の4xxエラーコードを受け取った時に、400と同じ扱いをする
Exception
Extended by SKJ\AppException implements SKJ\AppExceptionInterface uses SKJ\AppExceptionMethods
Extended by SKJ\AppException\RuntimeException
Extended by SKJ\AppException\AbstractHttpException
Extended by SKJ\AppException\HttpException
Extended by SKJ\AppException\HTTP\BadRequestException
Namespace: SKJ\AppException\HTTP
Package: SKJ\AppException\HTTP
Copyright: 2019 Seikouhou.
License: MIT
Author: y3high y3public@49364.net
Since: Class available since Release 0.8.0
Located at exceptions/HTTP/BadRequestException.php
Methods inherited from SKJ\AppException\AbstractHttpException
getBody(), getCookie(), getCookies(), getHeader(), getHeaders(), getJsonBody(), setBody(), setBodyFormat(), setCookie(), setCookies(), setHeader(), setHeaders()
Methods inherited from SKJ\AppException
__construct(), getCallerVars(), getGlobalVars()
Methods inherited from Exception
__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Methods inherited from SKJ\AppExceptionInterface
disableSkipContainer(), enableSkipContainer(), forge(), getBaseExceptionCode(), getCallQueue(), getClass(), getExceptionLog(), getFields(), getFuncArgsInCurrentContext(), getFunction(), getFunctionInCurrentContext(), getLineInCurrentContext(), getOriginalClassName(), getOriginalException(), getStatusCode(), isExtension(), renew(), resetFilter(), setCode(), setFields(), setFile(), setFilter(), setLine(), setMessage(), setSortOrder(), setStatusCode(), wasCreatedInCurrentContext()
Methods inherited from IteratorAggregate
getIterator()
Methods used from SKJ\AppExceptionMethods
disableSkipContainer(), enableSkipContainer(), forge(), getBaseExceptionCode(), getCallQueue(), getClass(), getExceptionLog(), getFields(), getFuncArgsInCurrentContext(), getFunction(), getFunctionInCurrentContext(), getLineInCurrentContext(), getOriginalClassName(), getOriginalException(), getStatusCode(), isExtension(), renew(), resetFilter(), setCode(), setFields(), setFile(), setFilter(), setLine(), setMessage(), setSortOrder(), setStatusCode(), wasCreatedInCurrentContext()
Constants inherited from SKJ\AppException\AbstractHttpException
RES_BODY_FORMAT_HTML, RES_BODY_FORMAT_JSON, RES_BODY_FORMAT_TEXT
Constants inherited from SKJ\AppException
OPT_CALLER_VARS_SNAPSHOT, OPT_GLOBAL_VARS_SNAPSHOT
Constants inherited from SKJ\AppExceptionInterface
SORT_ORDER_ASC, SORT_ORDER_DESC
Properties summary
protected string $defMessage

コンストラクタの引数$messageが渡されなかった場合の既定の例外メッセージ

コンストラクタの引数$messageが渡されなかった場合の既定の例外メッセージ

Api

# 'Bad Request'
protected string $messageTemplate

コンストラクタの引数$messageが配列で渡された場合にvsprintfに渡すフォーマット文字列

コンストラクタの引数$messageが配列で渡された場合にvsprintfに渡すフォーマット文字列

Api

# 'Bad Request'
protected integer $defCode

コンストラクタの引数$codeが渡されなかった場合の既定の例外コード

コンストラクタの引数$codeが渡されなかった場合の既定の例外コード

Api

# 400
protected mixed $statusCode

補助的に使用される状態コード(デフォルトはself::$defCodeと同じ)

補助的に使用される状態コード(デフォルトはself::$defCodeと同じ)

Api

# 400
Properties inherited from SKJ\AppException\HttpException
$iteratorSortOrder
Properties inherited from SKJ\AppException
$enableCallerVarsSnapShot, $enableGlobalVarsSnapShot
Properties inherited from Exception
$code, $file, $line, $message
API documentation generated by ApiGen