Add an error to the in progress list # Example ``` # use datafusion_common::{assert_contains, DataFusionError}; let mut builder = DataFusionError::builder(); builder.add_error(DataFusionError::Internal("foo".to_owned())); assert_contains!( builder.error_or(42).unwrap_err().to_string(), "Internal error: foo" ); ```
(&mut self, error: DataFusionError)
| 718 | /// ); |
| 719 | /// ``` |
| 720 | pub fn add_error(&mut self, error: DataFusionError) { |
| 721 | self.0.push(error); |
| 722 | } |
| 723 | |
| 724 | /// Add an error to the in progress list, returning the builder |
| 725 | /// |
no test coverage detected