Simple error handling, for net or file access.