php8.5
Home/ Manual/ reference / win32service/ The Win32ServiceException class

The Win32ServiceException class

The exception replaces the old mechanism where the error value needed to be compared to constants to detect which error was emitted. The Exception code is equal to the value of the error value and the exception message is based on the corresponding constant name.

Intro

The exception replaces the old mechanism where the error value needed to be compared to constants to detect which error was emitted. The Exception code is equal to the value of the error value and the exception message is based on the corresponding constant name.

Class synopsis

class Win32ServiceException { }

Source: reference/win32service/win32serviceexception.xml · from the official PHP manual (php/doc-en)