« ArithmeticError
DivisionByZeroError »
PHP Manual
定義済みの例外
AssertionError
検索
AssertionError
(PHP 7, PHP 8)
はじめに
AssertionError
は、
assert()
によるアサーションが失敗したときにスローされます。
クラス概要
class
AssertionError
extends
Error
{
/* 継承したプロパティ */
protected
string
$
message
= ""
;
private
string
$
string
= ""
;
protected
int
$
code
;
protected
string
$
file
= ""
;
protected
int
$
line
;
private
array
$
trace
= []
;
private
?
Throwable
$
previous
= null
;
/* 継承したメソッド */
public
function
Error::__construct
(
string
$message
= ""
,
int
$code
= 0
,
?
Throwable
$previous
=
null
)
final
public
function
Error::getMessage
():
string
final
public
function
Error::getPrevious
():
?
Throwable
final
public
function
Error::getCode
():
int
final
public
function
Error::getFile
():
string
final
public
function
Error::getLine
():
int
final
public
function
Error::getTrace
():
array
final
public
function
Error::getTraceAsString
():
string
public
function
Error::__toString
():
string
private
function
Error::__clone
():
void
}
関連キーワード:
final
AssertionError
protected
Throwable
継承
code
ArithmeticError
DivisionByZeroError
assert
アサーション
extends
プロパティ
trace
construct
getMessage
getPrevious
getCode
getFile
getLine
getTrace
getTraceAsString
toString
clone
関連する関数・ページ:
class.divisionbyzeroerror
class.arithmeticerror
class.ffi-exception
class.ffi-parserexception
class.valueerror
class.argumentcounterror
他のマニュアルの関連ページ
Django
1.8.5
Vim
vim9class