Documenting error handling when using streams