Doc error handling.