paleolimbot commented on code in PR #46792: URL: https://github.com/apache/arrow/pull/46792#discussion_r2143031199
########## cpp/src/arrow/status.h: ########## @@ -350,6 +343,30 @@ class ARROW_EXPORT [[nodiscard]] Status : public util::EqualityComparable<Status return FromArgs(code(), std::forward<Args>(args)...).WithDetail(detail()); } + /// \brief Apply a functor if the status indicates an error + /// + /// If the status indicates a success, it is returned as-is. Review Comment: ```suggestion /// /// This can be used to perform cleanup actions or integrate /// Status handling with non-Arrow error handling. /// If the status indicates a success, it is returned as-is. ``` (Or the actual reason if this isn't it!) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org