Overview

Namespaces

  • SKJ
    • AppException
      • HTTP
      • Logic
      • Runtime

Exceptions

  • AbstractContainerException
  • AbstractDateTimeException
  • AbstractHttpException
  • AbstractValidationException
  • HttpException
  • LogicException
  • RuntimeException
  • Overview
  • Namespace
  • Class

Class LogicException

アプリケーションレベルでのロジック例外

アプリケーションレベルで発生したロジック例外です

◆詳細◆

  • 正常利用では絶対に発生しないエラー(処理の途中で絶対に入りえない分岐に入った場合や、予め想定されている使い方をされなかった場合)に適用する例外
  • 明確なバグの発生であり、発生した時点で必ずコードの修正が発生する
  • 呼び出し元は予め例外の発生を予測することができる
  • 多くはプログラムのバグ検出のために仕込む例外
  • 例) 必ずコード中で定義されているはずの配列のエントリが存在しない
  • JavaのRuntimeExceptionに該当する
Exception
Extended by SKJ\AppException implements SKJ\AppExceptionInterface uses SKJ\AppExceptionMethods
Extended by 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\UnexpectedValueException

Indirect 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
Methods inherited from SKJ\AppException
__construct(), getCallerVars(), getGlobalVars()
Methods inherited from Exception
__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Methods inherited from IteratorAggregate
getIterator()
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 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
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

# 'ロジック例外が発生しました'
protected string $messageTemplate

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

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

Api

# '%sでロジック例外が発生しました'
protected integer $defCode

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

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

Api

# 1200
protected mixed $statusCode

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

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

Api

# 1200
protected integer $iteratorSortOrder

このオブジェクトをイテレータとして扱った時に返す連結された例外のソート順

このオブジェクトをイテレータとして扱った時に返す連結された例外のソート順

Uses

self::SORT_ORDER_DESC 初期値として使用

Api

# self::SORT_ORDER_DESC
Properties inherited from SKJ\AppException
$enableCallerVarsSnapShot, $enableGlobalVarsSnapShot
Properties inherited from Exception
$code, $file, $line, $message
API documentation generated by ApiGen