facebook twitter hatena line email

「Php/exceptionの種類」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(ページの作成:「 SPL 例外クラスツリー *LogicException (extends Exception) **BadFunctionCallException **BadMethodCallException **DomainException *InvalidArgumentException **Lengt...」)
 
行1: 行1:
 +
定義済み例外
 +
*Exception
 +
*ErrorException
 +
*Error
 +
*ArithmeticError
 +
*AssertionError
 +
*DivisionByZeroError
 +
*ParseError
 +
*TypeError
  
 
SPL 例外クラスツリー  
 
SPL 例外クラスツリー  
 
*LogicException (extends Exception)
 
*LogicException (extends Exception)
 
**BadFunctionCallException
 
**BadFunctionCallException
**BadMethodCallException
+
***BadMethodCallException
 
**DomainException
 
**DomainException
*InvalidArgumentException
+
**InvalidArgumentException
 
**LengthException
 
**LengthException
 
**OutOfRangeException
 
**OutOfRangeException
RuntimeException (extends Exception)
+
*RuntimeException (extends Exception)
OutOfBoundsException
+
**OutOfBoundsException
OverflowException
+
**OverflowException
RangeException
+
**RangeException
UnderflowException
+
**UnderflowException
UnexpectedValueException
+
**UnexpectedValueException
  
http://qiita.com/mikakane/items/dafd3d28c27311e5f429
+
==参考==
 +
公式_定義済み例外:http://php.net/manual/ja/reserved.exceptions.php
 +
公式_SPL 例外クラスツリー :http://php.net/manual/ja/spl.exceptions.php
 +
Exceptionまとめ:http://qiita.com/mikakane/items/dafd3d28c27311e5f429

2017年4月7日 (金) 11:42時点における版

定義済み例外

  • Exception
  • ErrorException
  • Error
  • ArithmeticError
  • AssertionError
  • DivisionByZeroError
  • ParseError
  • TypeError

SPL 例外クラスツリー

  • LogicException (extends Exception)
    • BadFunctionCallException
      • BadMethodCallException
    • DomainException
    • InvalidArgumentException
    • LengthException
    • OutOfRangeException
  • RuntimeException (extends Exception)
    • OutOfBoundsException
    • OverflowException
    • RangeException
    • UnderflowException
    • UnexpectedValueException

==参考== 公式_定義済み例外:http://php.net/manual/ja/reserved.exceptions.php 公式_SPL 例外クラスツリー :http://php.net/manual/ja/spl.exceptions.php Exceptionまとめ:http://qiita.com/mikakane/items/dafd3d28c27311e5f429