PHP 8.4.1 Released!

La classe RuntimeException

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

Introduction

Exception émise quand une erreur est rencontrée durant l'exécution.

Synopsis de la classe

class RuntimeException extends Exception {
/* Propriétés héritées */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* Méthodes héritées */
public Exception::__construct(string $message = "", int $code = 0, ?Throwable $previous = null)
final public Exception::getCode(): int
final public Exception::getFile(): string
final public Exception::getLine(): int
final public Exception::getTrace(): array
}
add a note

User Contributed Notes 1 note

To Top