The StreamErrorCode Enum

Introduction

The StreamErrorCode enum identifies the kind of error that a stream operation reported. It is available as StreamError::$code.

The same case may be reported by different wrappers for different reasons; StreamError::$message describes the specific failure.

Enum synopsis

StreamErrorCode None No error. Generic A generic error. ReadFailed Reading from the stream failed. WriteFailed Writing to the stream failed. SeekFailed Seeking in the stream failed. SeekNotSupported The stream does not support seeking. FlushFailed Flushing the stream failed. TruncateFailed Truncating the stream failed. ConnectFailed Connecting the socket failed. BindFailed Binding the socket to an address failed. ListenFailed Listening on the socket failed. AcceptFailed Accepting a connection on the socket failed. NotWritable The stream is not writable. NotReadable The stream is not readable. Disabled The wrapper or operation is disabled by configuration. NotFound The resource does not exist. PermissionDenied Permission was denied. AlreadyExists The file or directory already exists. InvalidPath The path is invalid. PathTooLong The path is too long. OpenFailed Opening failed. CreateFailed Creating the resource failed. DupFailed Duplicating a file descriptor failed. UnlinkFailed Deleting the file failed. RenameFailed Renaming the file or directory failed. MkdirFailed Creating the directory failed. RmdirFailed Removing the directory failed. StatFailed Retrieving file information failed. MetaFailed Changing file metadata failed. ChmodFailed Changing the file mode failed. ChownFailed Changing the file owner failed. CopyFailed Copying the file failed. TouchFailed Changing the file times failed. InvalidMode The open mode is invalid. InvalidMeta The metadata option is invalid. ModeNotSupported The open mode is not supported. Readonly The resource is read-only. RecursionDetected Infinite recursion was prevented. NotImplemented The operation is not implemented by the wrapper. NoOpener The wrapper cannot open streams. PersistentNotSupported Persistent streams are not supported. WrapperNotFound The wrapper does not exist. WrapperDisabled The wrapper is disabled. ProtocolUnsupported The protocol is not supported. WrapperRegistrationFailed Registering the wrapper failed. WrapperUnregistrationFailed Unregistering the wrapper failed. WrapperRestorationFailed Restoring the wrapper failed. FilterNotFound The stream filter does not exist. FilterFailed A stream filter failed. CastFailed Casting the stream failed. CastNotSupported The stream cannot be cast to the requested type. MakeSeekableFailed Making the stream seekable failed. BufferedDataLost Buffered data was lost during a cast. NetworkSendFailed Sending data failed. NetworkRecvFailed Receiving data failed. SslNotSupported The stream does not support encryption. ResumptionFailed Resuming failed. SocketPathTooLong The socket path is too long. OobNotSupported The stream does not support out-of-band data. ProtocolError A protocol error occurred. InvalidUrl The URL is invalid. InvalidResponse The response is invalid. InvalidHeader A header is invalid. InvalidParam A parameter or option is invalid. RedirectLimit The redirect limit was reached. AuthFailed Authentication failed. TimeOut The operation timed out. ArchivingFailed Archiving failed. EncodingFailed Encoding failed. DecodingFailed Decoding failed. InvalidFormat The data format is invalid. AllocationFailed Allocation failed. TemporaryFileFailed Creating a temporary file failed. LockFailed Locking the stream failed. LockNotSupported The stream does not support locking. UserspaceNotImplemented The user wrapper does not implement the method. UserspaceInvalidReturn A user wrapper method returned an invalid value. UserspaceCallFailed Calling a user callback failed.

See Also