« DateObjectError
DateException »

DateRangeError クラス

(PHP 8 >= 8.3.0)

はじめに

32ビットプラットフォーム上で、 日付オブジェクトが符号付き32ビットの範囲外の日付を表していた場合にスローされます。 このエラーをスローするのは、 DateTime::getTimestamp(), DateTimeImmutable::getTimestamp(), date_timestamp_get() です。

クラス概要

class DateRangeError extends DateError {
/* 継承したプロパティ */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* 継承したメソッド */
public function Error::__construct(string $message = "", int $code = 0, ?Throwable $previous = null)
final public function Error::getMessage(): string
final public function Error::getPrevious(): ?Throwable
final public function Error::getCode(): int
final public function Error::getFile(): string
final public function Error::getLine(): int
final public function Error::getTrace(): array
final public function Error::getTraceAsString(): string
public function Error::__toString(): string
private function Error::__clone(): void
}
関連キーワード:
final   DateRangeError   protected   private   Throwable   DateObjectError   ビット   日付   getTimestamp   DateError   継承   message   code   previous   DateException   Date   Time   プラットフォーム   符号   範囲   スロー   DateTime   DateTimeImmutable   date   timestamp
関連する関数・ページ:
class.dateobjecterror   class.dateerror   class.ffi-exception   class.ffi-parserexception   class.valueerror   class.dateexception