« DOMEntityReference::__construct
DOMImplementation »

DOMException / Dom\Exception クラス

(PHP 5, PHP 7, PHP 8)

はじめに

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

DOM 名前空間では、このクラスは Dom\Exception のエイリアスです。

Throwable エラー も参照ください。

クラス概要

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 function Exception::__construct(string $message = "", int $code = 0, ?Throwable $previous = null)
final public function Exception::getMessage(): string
final public function Exception::getPrevious(): ?Throwable
final public function Exception::getCode(): int
final public function Exception::getFile(): string
final public function Exception::getLine(): int
final public function Exception::getTrace(): array
final public function Exception::getTraceAsString(): string
public function Exception::__toString(): string
private function Exception::__clone(): void
}

プロパティ

code

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

関連キーワード:
Exception   final   DOMException   Throwable   code   protected   private   プロパティ   construct   操作   継承   message   previous   DOMEntityReference   DOMImplementation   状況   論理的   不可能   空間   エイリアス   概要   extends   line   trace   getMessage
関連する関数・ページ:
class.imagickexception   class.invalidargumentexception   class.com-exception   class.runtimeexception   class.underflowexception   class.yaf-exception