« AssertionError
CompileError »
PHP Manual
定義済みの例外
DivisionByZeroError
検索
DivisionByZeroError
(PHP 7, PHP 8)
はじめに
DivisionByZeroError
は、数値をゼロで割ろうとした場合にスローされます。
クラス概要
class
DivisionByZeroError
extends
ArithmeticError
{
/* 継承したプロパティ */
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
DivisionByZeroError
protected
private
Throwable
継承
message
code
previous
AssertionError
CompileError
数値
概要
extends
ArithmeticError
プロパティ
line
trace
construct
getMessage
getPrevious
getCode
getFile
getLine
getTrace
関連する関数・ページ:
class.assertionerror
class.ffi-exception
class.compileerror
class.ffi-parserexception
class.valueerror
class.arithmeticerror