MCPcopy Create free account
hub / github.com/apache/datafusion / add_error

Method add_error

datafusion/common/src/error.rs:720–722  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 ///

Callers 1

prepare_select_exprsMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected