CakeFest 2024: The Official CakePHP Conference

DOMException クラス

(PHP 5, PHP 7, PHP 8)

はじめに

しかるべき状況、すなわち論理的に不可能な操作を行った際などの場合に DOM 操作は例外を発生させます。

例外(exceptions) も参照ください。

クラス概要

final class DOMException extends Exception {
/* プロパティ */
public int $code;
/* 継承したプロパティ */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* 継承したメソッド */
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
}

プロパティ

code

発生したエラーの型を示す整数値

add a note

User Contributed Notes

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