Overview

Namespaces

  • SKJ
    • AppException
      • HTTP
      • Logic
      • Runtime

Exceptions

  • BadFunctionCallException
  • BadMethodCallException
  • CircularReferenceException
  • ContainerException
  • DependencyInjectionException
  • DomainException
  • EnvironmentException
  • InvalidArgumentException
  • LengthException
  • OutOfRangeException
  • UnexpectedValueException
  • Overview
  • Namespace
  • Class

Class ContainerException

未知、未分類の例外が連結されたロジック例外

未知、未分類の例外を受け取った場合、その例外を連結して使用する例外です

◆詳細◆

  • 呼び出した関数やメソッドから、特に特別な処理をしない(できない)例外を受け取った場合、この例外を連結して再度上流へと投げる為に利用される
  • 呼び出し側に通知が不必要な例外や、発生する事自体を認識していない例外は、全てこの例外に連結することによって、未知、未分類の例外という抽象化をする為に使用する
  • これを使用する事によってphpdocの記述を単純化させる
  • また、AppExceptionが持ついくつかの機能では標準で、この例外を無視する仕様となっている(例えばイテレータとして利用時に、この例外だけは飛ばすなど)
  • この例外のメッセージ、例外コード、状態コード、フィールド名などは連結された例外のものが自動的に設定される
  • この例外が発生した場所と同一スコープで発生した例外をコンストラクタの引数$previousに渡した場合は、この例外が作成されずに$previousが再スルーされる
  • コンストラクタの引数$previousにContainerExceptionのインスタンスが渡された場合は、この例外が作成されずに$previousが再スルーされる
Exception
Extended by SKJ\AppException implements SKJ\AppExceptionInterface uses SKJ\AppExceptionMethods
Extended by SKJ\AppException\LogicException
Extended by SKJ\AppException\AbstractContainerException
Extended by SKJ\AppException\Logic\ContainerException
Namespace: SKJ\AppException\Logic
Package: SKJ\AppException\Logic
Copyright: 2019 Seikouhou.
License: MIT
Author: y3high y3public@49364.net
Since: Class available since Release 0.8.0
Located at exceptions/Logic/ContainerException.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

# 1201
protected mixed $statusCode

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

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

Api

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