DOM DOMException 클래스

(PHP 5, PHP 7, PHP 8)


소개

DOM 작업은 특정 상황, 즉 논리적인 이유로 작업을 수행할 수 없는 경우 예외를 발생시킵니다.

예외도 참조하십시오.


클래스 개요

                  
final class DOMException extends Exception {

  /* Properties */
  public int $code;

  /* Inherited properties */
  protected string $message = "";
  private string $string = "";
  protected int $code;
  protected string $file = "";
  protected int $line;
  private array $trace = [];
  private ?Throwable $previous = null;

  /* Inherited methods */
  final public Exception::getMessage(): string
  final public Exception::getPrevious(): ?Throwable
  final public Exception::getCode(): int
  final public Exception::getFile(): string
  final public Exception::getLine(): int
  final public Exception::getTrace(): array
  final public Exception::getTraceAsString(): string
  public Exception::__toString(): string
  private Exception::__clone(): void
}
                  
                

Properties

code
생성된 오류 유형을 나타내는 정수