Exception Sınıfı

(PHP 5, PHP 7, PHP 8)

Giriş

Exception tüm kullanıcı istisnaları için temel sınıftır.

Sınıf Sözdizimi

Exception 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 publicgetPrevious ( ) : 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

İstisna iletisi.

code

İstisna kodu.

file

İstisnanın oluştuğu dosyanın ismi.

line

İstisnanın oluştuğu satırın numarası.

İçindekiler