Class HttpException
HTTP層実行例外
HTTP層で必要となる、HTTPレスポンスを生成する基となる情報を保持する例外です
◆詳細◆
- この例外を単体では使用せずに、この例外を継承した例外を使用する
- コードはHTTPレスポンスのステータスラインのステータスコードとなる
- メッセージはHTTPレスポンスのステータスラインの結果フレーズとなる
- HTTPレスポンスヘッダを設定できる
- HTTPレスポンスクッキーを設定できる
- HTTPレスポンスボディを設定できる
- Exception
- SKJ\AppException implements SKJ\AppExceptionInterface uses SKJ\AppExceptionMethods
- SKJ\AppException\RuntimeException
- SKJ\AppException\AbstractHttpException
- SKJ\AppException\HttpException
Direct known subclasses
SKJ\AppException\HTTP\BadGatewayException, SKJ\AppException\HTTP\BadRequestException, SKJ\AppException\HTTP\LengthRequiredException, SKJ\AppException\HTTP\LockedException, SKJ\AppException\HTTP\MethodNotAllowedException, SKJ\AppException\HTTP\NotAcceptableException, SKJ\AppException\HTTP\NotFoundException, SKJ\AppException\HTTP\NotImplementedException, SKJ\AppException\HTTP\PaymentRequiredException, SKJ\AppException\HTTP\PreconditionFailedException, SKJ\AppException\HTTP\ProxyAuthenticationRequiredException, SKJ\AppException\HTTP\RequestedRangeNotSatisfiableException, SKJ\AppException\HTTP\ConflictException, SKJ\AppException\HTTP\RequestEntityTooLargeException, SKJ\AppException\HTTP\RequestTimeoutException, SKJ\AppException\HTTP\RequestUriTooLongException, SKJ\AppException\HTTP\ServiceUnavailableException, SKJ\AppException\HTTP\UnauthorizedException, SKJ\AppException\HTTP\UnprocessableEntityException, SKJ\AppException\HTTP\UnsupportedMediaTypeException, SKJ\AppException\HTTP\ExpectationFailedException, SKJ\AppException\HTTP\FailedDependencyException, SKJ\AppException\HTTP\ForbiddenException, SKJ\AppException\HTTP\GatewayTimeoutException, SKJ\AppException\HTTP\GoneException, SKJ\AppException\HTTP\HttpVersionNotSupportedException, SKJ\AppException\HTTP\InternalServerErrorException
Namespace: SKJ\AppException
Package: SKJ\AppException
Copyright: 2019 Seikouhou.
License: MIT
Author: y3high y3public@49364.net
Version: 0.8.0
Since: Class available since Release 0.8.0
Located at exceptions/HttpException.php
Package: SKJ\AppException
Copyright: 2019 Seikouhou.
License: MIT
Author: y3high y3public@49364.net
Version: 0.8.0
Since: Class available since Release 0.8.0
Located at exceptions/HttpException.php
getBody(),
getCookie(),
getCookies(),
getHeader(),
getHeaders(),
getJsonBody(),
setBody(),
setBodyFormat(),
setCookie(),
setCookies(),
setHeader(),
setHeaders()
|
__construct(),
getCallerVars(),
getGlobalVars()
|
__toString(),
__wakeup(),
getCode(),
getFile(),
getLine(),
getMessage(),
getPrevious(),
getTrace(),
getTraceAsString()
|
getIterator()
|
RES_BODY_FORMAT_HTML,
RES_BODY_FORMAT_JSON,
RES_BODY_FORMAT_TEXT
|
OPT_CALLER_VARS_SNAPSHOT,
OPT_GLOBAL_VARS_SNAPSHOT
|
SORT_ORDER_ASC,
SORT_ORDER_DESC
|
protected
string
|
$defMessage
コンストラクタの引数$messageが渡されなかった場合の既定の例外メッセージ |
#
'Internal Server Error'
|
protected
string
|
$messageTemplate
コンストラクタの引数$messageが配列で渡された場合にvsprintfに渡すフォーマット文字列 |
#
'Internal Server Error'
|
protected
integer
|
$defCode
コンストラクタの引数$codeが渡されなかった場合の既定の例外コード |
#
500
|
protected
mixed
|
$statusCode
補助的に使用される状態コード(デフォルトはself::$defCodeと同じ) |
#
500
|
protected
integer
|
$iteratorSortOrder
このオブジェクトをイテレータとして扱った時に返す連結された例外のソート順 |
#
self::SORT_ORDER_DESC
|
$enableCallerVarsSnapShot,
$enableGlobalVarsSnapShot
|
$code,
$file,
$line,
$message
|