Overview

Namespaces

  • SKJ
    • AppException
      • HTTP
      • Logic
      • Runtime

Classes

  • Label

Interfaces

  • AppExceptionInterface

Traits

  • AppExceptionMethods

Exceptions

  • AppException
  • Overview
  • Namespace
  • Class

Class AppException

アプリケーションレベルで発生する例外の基底となる例外

アプリケーションレベルで発生した例外は全てこの例外を継承します

◆詳細◆

  • この例外を直接投げるようなことはしないで下さい
  • この例外を継承した\SKJ\AppException\LogicException、\SKJ\AppException\RuntimeException、もしくはこの両例外を継承した更なる詳細例外を投げて下さい
Exception
Extended by SKJ\AppException implements SKJ\AppExceptionInterface uses SKJ\AppExceptionMethods

Direct known subclasses

SKJ\AppException\LogicException, SKJ\AppException\RuntimeException

Indirect known subclasses

SKJ\AppException\AbstractContainerException, SKJ\AppException\AbstractDateTimeException, SKJ\AppException\HTTP\GatewayTimeoutException, SKJ\AppException\HTTP\GoneException, SKJ\AppException\HTTP\HttpVersionNotSupportedException, SKJ\AppException\HTTP\InternalServerErrorException, 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\AbstractHttpException, SKJ\AppException\HTTP\PaymentRequiredException, SKJ\AppException\HTTP\PreconditionFailedException, SKJ\AppException\HTTP\ProxyAuthenticationRequiredException, SKJ\AppException\HTTP\RequestedRangeNotSatisfiableException, 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\AbstractValidationException, SKJ\AppException\HTTP\UnsupportedMediaTypeException, SKJ\AppException\HttpException, SKJ\AppException\Logic\BadFunctionCallException, SKJ\AppException\Logic\BadMethodCallException, SKJ\AppException\Logic\CircularReferenceException, SKJ\AppException\Logic\ContainerException, SKJ\AppException\Logic\DependencyInjectionException, SKJ\AppException\Logic\DomainException, SKJ\AppException\Logic\EnvironmentException, SKJ\AppException\Logic\InvalidArgumentException, SKJ\AppException\HTTP\BadGatewayException, SKJ\AppException\Logic\LengthException, SKJ\AppException\Logic\OutOfRangeException, SKJ\AppException\Logic\UnexpectedValueException, SKJ\AppException\Runtime\AuthenticationException, SKJ\AppException\Runtime\DeadLockException, SKJ\AppException\Runtime\DuplicationException, SKJ\AppException\Runtime\DurationException, SKJ\AppException\Runtime\EmptyResultException, SKJ\AppException\Runtime\ExpiryException, SKJ\AppException\Runtime\InvalidElementException, SKJ\AppException\HTTP\BadRequestException, SKJ\AppException\Runtime\MissingElementException, SKJ\AppException\Runtime\NoConditionException, SKJ\AppException\Runtime\OutOfBoundsException, SKJ\AppException\Runtime\OverflowException, SKJ\AppException\Runtime\PermissionException, SKJ\AppException\Runtime\RangeException, SKJ\AppException\Runtime\TemporaryFailureException, SKJ\AppException\Runtime\TimeoutException, SKJ\AppException\Runtime\TransactionException, SKJ\AppException\Runtime\UnavailableServiceException, SKJ\AppException\HTTP\ConflictException, SKJ\AppException\Runtime\UnderflowException, SKJ\AppException\Runtime\UnexpectedValueException, SKJ\AppException\Runtime\UploadException, SKJ\AppException\Runtime\ValidationException, SKJ\AppException\Runtime\WrongArgumentException, SKJ\AppException\HTTP\ExpectationFailedException, SKJ\AppException\HTTP\FailedDependencyException, SKJ\AppException\HTTP\ForbiddenException
Namespace: SKJ
Package: SKJ\AppException
Copyright: 2019 Seikouhou.
License: MIT
Author: y3high y3public@49364.net
Since: Class available since Release 0.8.0
Located at AppException.php
Methods summary
public
# __construct( string|array|null $message = null, integer|null $code = null, Exception $previous = null, integer|null $options = null )

コンストラクタ

コンストラクタ

例外の初期化処理

※このクラスを継承した子クラスに「initialize」メソッドが存在すれば呼ばれるが、その際に例外が投げられる可能性があるので注意する事(詳細は子クラスの「initialize」メソッドのDOCを確認)

Parameters

$message
例外メッセージ、これを文字列ではなく配列として渡すと、$messageTemplateに設定されたフォーマット文字列と一緒にvsprintfへと渡され、その戻り値が例外メッセージとなります
$code
例外コード
$previous
以前に使われた例外で、例外の連結に使用
$options
変数のスナップショットオプションを指定する

Uses

self::OPT_GLOBAL_VARS_SNAPSHOT グローバル変数のスナップショット取得時に$optionsへ指定
self::OPT_CALLER_VARS_SNAPSHOT ローカル変数のスナップショット取得時に$optionsへ指定

Api

Overrides

Exception::__construct()
public array
# getGlobalVars( )

例外発生時のグローバルスコープの変数情報を取得

例外発生時のグローバルスコープの変数情報を取得

Returns

array
グローバル変数情報

Api

Implementation of

SKJ\AppExceptionInterface::getGlobalVars()
public array
# getCallerVars( )

例外発生時のローカルスコープの変数情報を取得

例外発生時のローカルスコープの変数情報を取得

Returns

array
ローカル変数情報

Api

Implementation of

SKJ\AppExceptionInterface::getCallerVars()
Methods inherited from Exception
__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
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 inherited from IteratorAggregate
getIterator()
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 summary
integer OPT_GLOBAL_VARS_SNAPSHOT

例外発生時のグローバル変数のスナップショットを撮りたい時に、コンストラクタの第4引数に指定する定数

例外発生時のグローバル変数のスナップショットを撮りたい時に、コンストラクタの第4引数に指定する定数

Api

# 1
integer OPT_CALLER_VARS_SNAPSHOT

例外発生時のローカル変数のスナップショットを撮りたい時に、コンストラクタの第4引数に指定する定数

例外発生時のローカル変数のスナップショットを撮りたい時に、コンストラクタの第4引数に指定する定数

Api

# 2
Constants inherited from SKJ\AppExceptionInterface
SORT_ORDER_ASC, SORT_ORDER_DESC
Properties summary
protected string $defMessage

サブクラスにて初期値を上書きする

サブクラスにて初期値を上書きする

Api

# '例外が発生しました'
protected string $messageTemplate

サブクラスにて初期値を上書きする

サブクラスにて初期値を上書きする

Api

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

サブクラスにて初期値を上書きする

サブクラスにて初期値を上書きする

Api

# 1000
protected mixed $statusCode

サブクラスにて初期値を上書きする

サブクラスにて初期値を上書きする

Api

# 1000
protected integer $iteratorSortOrder

サブクラスにて初期値を上書きする

サブクラスにて初期値を上書きする

Uses

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

Api

# self::SORT_ORDER_DESC
public static boolean $enableGlobalVarsSnapShot

例外発生時のグローバルスコープの変数情報を記録するかどうかの真偽値

例外発生時のグローバルスコープの変数情報を記録するかどうかの真偽値

Api

# false
public static boolean $enableCallerVarsSnapShot

例外発生時のローカルスコープの変数情報を記録するかどうかの真偽値

例外発生時のローカルスコープの変数情報を記録するかどうかの真偽値

Api

# false
Properties inherited from Exception
$code, $file, $line, $message
API documentation generated by ApiGen