Add accessor for error set in the stream.