Error

(PHP 7, PHP 8)

Giriş

Error tüm dahili PHP hataları için temel sınıftır.

Sınıf Sözdizimi

Error implements Throwable {
/* Özellikler */
protected string $message ;
protected int $code ;
protected string $file ;
protected int $line ;
/* Yöntemler */
public __construct ( string $message = "" , int $code = 0 , Throwable $previous = null )
final public getMessage ( ) : string
final public getPrevious ( ) : Throwable|null
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
}

Özellikler

message

Hata iletisi

code

Hata kodu

file

Hatanın oluştuğu dosyanın adı

line

Hatanın oluştuğu satır

İçindekiler