Class LogicException
アプリケーションレベルでのロジック例外
アプリケーションレベルで発生したロジック例外です
◆詳細◆
- 正常利用では絶対に発生しないエラー(処理の途中で絶対に入りえない分岐に入った場合や、予め想定されている使い方をされなかった場合)に適用する例外
- 明確なバグの発生であり、発生した時点で必ずコードの修正が発生する
- 呼び出し元は予め例外の発生を予測することができる
- 多くはプログラムのバグ検出のために仕込む例外
- 例) 必ずコード中で定義されているはずの配列のエントリが存在しない
- JavaのRuntimeExceptionに該当する
- Exception
- SKJ\AppException implements SKJ\AppExceptionInterface uses SKJ\AppExceptionMethods
- SKJ\AppException\LogicException
Direct known subclasses
SKJ\AppException\AbstractContainerException, SKJ\AppException\Logic\BadFunctionCallException, SKJ\AppException\Logic\CircularReferenceException, SKJ\AppException\Logic\DomainException, SKJ\AppException\Logic\EnvironmentException, SKJ\AppException\Logic\InvalidArgumentException, SKJ\AppException\Logic\LengthException, SKJ\AppException\Logic\OutOfRangeException, SKJ\AppException\Logic\UnexpectedValueExceptionIndirect known subclasses
SKJ\AppException\Logic\BadMethodCallException, SKJ\AppException\Logic\ContainerException, SKJ\AppException\Logic\DependencyInjectionException
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/LogicException.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/LogicException.php
__construct(),
getCallerVars(),
getGlobalVars()
|
__toString(),
__wakeup(),
getCode(),
getFile(),
getLine(),
getMessage(),
getPrevious(),
getTrace(),
getTraceAsString()
|
getIterator()
|
OPT_CALLER_VARS_SNAPSHOT,
OPT_GLOBAL_VARS_SNAPSHOT
|
SORT_ORDER_ASC,
SORT_ORDER_DESC
|
protected
string
|
$defMessage
コンストラクタの引数$messageが渡されなかった場合の既定の例外メッセージ |
#
'ロジック例外が発生しました'
|
protected
string
|
$messageTemplate
コンストラクタの引数$messageが配列で渡された場合にvsprintfに渡すフォーマット文字列 |
#
'%sでロジック例外が発生しました'
|
protected
integer
|
$defCode
コンストラクタの引数$codeが渡されなかった場合の既定の例外コード |
#
1200
|
protected
mixed
|
$statusCode
補助的に使用される状態コード(デフォルトはself::$defCodeと同じ) |
#
1200
|
protected
integer
|
$iteratorSortOrder
このオブジェクトをイテレータとして扱った時に返す連結された例外のソート順 |
#
self::SORT_ORDER_DESC
|
$enableCallerVarsSnapShot,
$enableGlobalVarsSnapShot
|
$code,
$file,
$line,
$message
|