Class UnauthorizedException
Unauthorized HTTP層実行例外
認証情報を間違えている事を示す例外です
◆詳細◆
- 認証情報が渡されなかったり、間違っていた場合に利用される
- レスポンスにはWWW-Authenticateヘッダが含まれ、そこで認証方式を指定する
- Exception
- SKJ\AppException implements SKJ\AppExceptionInterface uses SKJ\AppExceptionMethods
- SKJ\AppException\RuntimeException
- SKJ\AppException\AbstractHttpException
- SKJ\AppException\HttpException
- SKJ\AppException\HTTP\UnauthorizedException
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/UnauthorizedException.php
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/UnauthorizedException.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が渡されなかった場合の既定の例外メッセージ |
#
'Unauthorized'
|
protected
string
|
$messageTemplate
コンストラクタの引数$messageが配列で渡された場合にvsprintfに渡すフォーマット文字列 |
#
'Unauthorized'
|
protected
integer
|
$defCode
コンストラクタの引数$codeが渡されなかった場合の既定の例外コード |
#
401
|
protected
mixed
|
$statusCode
補助的に使用される状態コード(デフォルトはself::$defCodeと同じ) |
#
401
|
$iteratorSortOrder
|
$enableCallerVarsSnapShot,
$enableGlobalVarsSnapShot
|
$code,
$file,
$line,
$message
|