document about error handling