(PHP 8 >= 8.6.0)
A StreamError object describes a single error
reported by a stream operation. Instances are created by PHP and
are returned by stream_last_errors() and
StreamException::getErrors(), and passed to the
error_handler
stream context option.
The StreamErrorCode case identifying the kind of error.
The error message. This is the text of the diagnostic that is emitted
with StreamErrorMode::Error, without the function
name prefix.
The name of the stream wrapper that reported the error,
for example plainfile for local files.
The level the error is reported with in
StreamErrorMode::Error mode,
as one of the E_*
constants, such as E_WARNING or E_NOTICE.
true if the error ended the operation and throws a
StreamException in
StreamErrorMode::Exception mode, false otherwise.