PHP 8.3.4 Released!

The Win32ServiceException class

(PECL win32service >=1.0.0)

はじめに

この例外は、 エラーを検知するために、 定数と比較する必要があった古いやり方を置き換えるものです。 この例外が持つコードは、対応する定数の値と等しく、 例外メッセージも対応する定数名に基づいています。

クラス概要

class Win32ServiceException extends Exception {
/* 継承したプロパティ */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* 継承したメソッド */
final public Exception::getMessage(): string
final public Exception::getCode(): int
final public Exception::getFile(): string
final public Exception::getLine(): int
final public Exception::getTrace(): array
}
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top