pub enum DataHubError {
FailToSetupGlobalDataSrcs {
errors: HashMap<String, Err>,
},
FailToSetupLocalDataSrcs {
errors: HashMap<String, Err>,
},
FailToCommitDataConn {
errors: HashMap<String, Err>,
},
FailToPreCommitDataConn {
errors: HashMap<String, Err>,
},
NoDataSrcToCreateDataConn {
name: String,
data_conn_type: &'static str,
},
FailToCreateDataConn {
name: String,
data_conn_type: &'static str,
},
FailToCastDataConn {
name: String,
cast_to_type: &'static str,
},
}
Expand description
An enum type representing the reasons for errors that can occur within DataHub
operations.
Variants§
FailToSetupGlobalDataSrcs
Indicates a failure during the setup process of one or more global data sources. Contains a map of data source names to their corresponding errors.
FailToSetupLocalDataSrcs
Indicates a failure during the setup process of one or more session-local data sources. Contains a map of data source names to their corresponding errors.
FailToCommitDataConn
Indicates a failure during the commit process of one or more DataConn
instances
involved in a transaction. Contains a map of data connection names to their errors.
FailToPreCommitDataConn
Indicates a failure during the pre commit process of one or more DataConn
instances
involved in a transaction. Contains a map of data connection names to their errors.
NoDataSrcToCreateDataConn
Indicates that no DataSrc
was found to create a DataConn
for the specified name
and type.
Fields
FailToCreateDataConn
Indicates a failure to create a DataConn
object.
Fields
FailToCastDataConn
Indicates a failure to cast a retrieved DataConn
to the expected type.