DateException クラス

(PHP 8 >= 8.3.0)

はじめに

日付/時刻に関する例外の親クラスです。 ユーザーの入力や、パースが必要な自由入力のテキスト引数によって生じる問題に対応するものです。

以下の子クラスの例外がスローされます:

クラス概要

classDateExceptionextendsException {
protectedstring$message = "";
privatestring$string = "";
protectedint$code;
protectedstring$file = "";
protectedint$line;
privatearray$trace = [];
private?Throwable$previous = null;
publicException::__construct(string$message = "", int$code = 0, ?Throwable$previous = null)
finalpublicException::getCode(): int
finalpublicException::getLine(): int
}
To Top