Document error handling.