Overview

Namespaces

  • SKJ
    • AppException
      • HTTP
      • Logic
      • Runtime

Exceptions

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

Class InvalidArgumentException

引数異常ロジック例外

無効な引数を受け取った場合にスローされる例外です

◆詳細◆

  • この例外が発生した場合はコードの修正が必要です
  • 基本的にはシグネチャ&phpdocのparamから読み取れる情報が満たされていない場合や、コード修正が発生するようなケースに利用されます
  • 例)シグネチャに反する型の引数を受け取った
  • 例)必要な数の引数が渡されなかった
Exception
Extended by SKJ\AppException implements SKJ\AppExceptionInterface uses SKJ\AppExceptionMethods
Extended by SKJ\AppException\LogicException
Extended by SKJ\AppException\Logic\InvalidArgumentException
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/InvalidArgumentException.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 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 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

# 1303
protected mixed $statusCode

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

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

Api

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