Skip to content

Commit b8a38a8

Browse files
Cheng-Yuan-LaiIan Lai
authored andcommitted
feat: add macros for new DataFusionError variants with optional backtrace
1 parent f12ba60 commit b8a38a8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

datafusion/common/src/error.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,12 +809,18 @@ make_error!(plan_err, plan_datafusion_err, Plan);
809809
// Exposes a macro to create `DataFusionError::Internal` with optional backtrace
810810
make_error!(internal_err, internal_datafusion_err, Internal);
811811

812+
// Exposes a macro to create `DataFusionError::IoError` with optional backtrace
813+
make_error!(external_err, external_datafusion_err, External);
814+
812815
// Exposes a macro to create `DataFusionError::NotImplemented` with optional backtrace
813816
make_error!(not_impl_err, not_impl_datafusion_err, NotImplemented);
814817

815818
// Exposes a macro to create `DataFusionError::Execution` with optional backtrace
816819
make_error!(exec_err, exec_datafusion_err, Execution);
817820

821+
// Exposes a macro to create `DataFusionError::ExecutionJoin` with optional backtrace
822+
make_error!(exec_join_err, exec_join_datafusion_err, ExecutionJoin);
823+
818824
// Exposes a macro to create `DataFusionError::Configuration` with optional backtrace
819825
make_error!(config_err, config_datafusion_err, Configuration);
820826

0 commit comments

Comments
 (0)