error: cleanup error enumerations.
buffer: set error when read from stream has failed.