Php/docs/class.error

提供:Dev Guides
< Php
移動先:案内検索

(PHP 7, PHP 8)

はじめに

Error は、PHP のすべての内部エラーの基底クラスです。


クラス概要


Error implements Throwable {

/* プロパティ */

protected string $message

protected int $code

protected string $file

protected int $line

/* メソッド */

public __construct ([ string $message = "" [, int $code = 0 [, Throwable $previous = null ]]] )

final public getMessage ( ) : string

final public getPrevious ( ) : Throwable

final public getCode ( ) : mixed

final public getFile ( ) : string

final public getLine ( ) : int

final public getTrace ( ) : array

final public getTraceAsString ( ) : string

public __toString ( ) : string

final private __clone ( ) : void

}

プロパティ

message
エラーメッセージ
code
エラーコード
file
エラーが発生したファイル名
line
エラーが発生した行番号


目次