CakeFest 2024: The Official CakePHP Conference

La clase DOMException

(PHP 5, PHP 7, PHP 8)

Introducción

Las operaciones DOM lanzan excepciones bajo circunstancias particulares, esto es, cuando es imposible de realizar una operación por razones lógicas.

Véase también Excepciones.

Sinopsis de la Clase

final class DOMException extends Exception {
/* Propiedades */
public int $code;
/* Propiedades heredadas */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* Métodos heredados */
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
}

Propiedades

code

Un integer que indica el tipo de error generado

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top