Used for any operations on streams whenever an error occurs
Constructs a new StreamException of the given sub-error type and allows an optional message to go along with it
Returns the type of error that occurred
See Implementation
Used for any operations on streams whenever an error occurs