Overview

Namespaces

  • SKJ
    • AppException
      • HTTP
      • Logic
      • Runtime

Exceptions

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

Class RuntimeException

アプリケーションレベルでの実行例外

アプリケーションレベルで発生した実行例外です

◆詳細◆

  • 実行時に発生しうるエラーに適用
  • 多くの場合、呼び出し元は例外の発生を予測できない(呼んでみないとわからない)ケースに適用される例外
  • 例) 外部から来たキーでDBにアクセスしたら望む情報が得られなかった
  • 例) 何らかの理由でDBの接続に失敗した
  • JavaのRuntimeExceptionとは全く逆の意味(JavaのRuntimeExceptionはPHPのLogicExceptionになる)なので注意
Exception
Extended by SKJ\AppException implements SKJ\AppExceptionInterface uses SKJ\AppExceptionMethods
Extended by SKJ\AppException\RuntimeException

Direct known subclasses

SKJ\AppException\AbstractDateTimeException, SKJ\AppException\AbstractHttpException, 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\UnderflowException, SKJ\AppException\Runtime\UnexpectedValueException, SKJ\AppException\Runtime\UploadException, SKJ\AppException\AbstractValidationException, SKJ\AppException\Runtime\WrongArgumentException, SKJ\AppException\Runtime\AuthenticationException, SKJ\AppException\Runtime\DeadLockException, SKJ\AppException\Runtime\DuplicationException, SKJ\AppException\Runtime\EmptyResultException, SKJ\AppException\Runtime\InvalidElementException, SKJ\AppException\Runtime\MissingElementException, SKJ\AppException\Runtime\NoConditionException

Indirect known subclasses

SKJ\AppException\HTTP\BadGatewayException, SKJ\AppException\HTTP\BadRequestException, 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\HTTP\PaymentRequiredException, SKJ\AppException\HTTP\PreconditionFailedException, SKJ\AppException\HTTP\ProxyAuthenticationRequiredException, SKJ\AppException\HTTP\RequestedRangeNotSatisfiableException, SKJ\AppException\HTTP\ConflictException, 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\HTTP\UnsupportedMediaTypeException, SKJ\AppException\HttpException, SKJ\AppException\Runtime\DurationException, SKJ\AppException\Runtime\ExpiryException, SKJ\AppException\HTTP\ExpectationFailedException, SKJ\AppException\Runtime\UnavailableServiceException, SKJ\AppException\Runtime\ValidationException, SKJ\AppException\HTTP\FailedDependencyException, SKJ\AppException\HTTP\ForbiddenException, SKJ\AppException\HTTP\GatewayTimeoutException, SKJ\AppException\HTTP\GoneException, SKJ\AppException\HTTP\HttpVersionNotSupportedException, SKJ\AppException\HTTP\InternalServerErrorException
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/RuntimeException.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

# 1100
protected mixed $statusCode

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

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

Api

# 1100
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