[doc] Document error handling