intl のエラー用の例外クラス

(PHP 5 > 5.5.0, PHP 7, PHP 8, PECL intl > 3.0.0a1)

はじめに

このクラスは、intl 関数の内部でエラーが発生したときに例外を生成するために使います。 例外が生成されるのは、intl.use_exceptions が有効な場合だけです。

クラス概要

classIntlExceptionextendsException {
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