pub use crate::workflow_registry::WorkflowRegistrationError;
use temporalio_client::PluginApplyError;
pub use temporalio_sdk_core::WorkerValidationError;
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum WorkerCreateError {
#[error(transparent)]
Plugin(#[from] PluginApplyError),
#[error("worker initialization failed: {0}")]
Initialization(#[source] anyhow::Error),
}
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum WorkerRunError {
#[error("worker validation failed: {0}")]
Validation(#[source] WorkerValidationError),
#[error("{message}")]
Fatal {
message: String,
#[source]
source: Box<dyn std::error::Error + Send + Sync + 'static>,
},
}
pub use temporalio_common::error::{
ActivityExecutionError, ApplicationErrorCategory, ApplicationFailure,
ChildWorkflowExecutionError, ChildWorkflowStartError, OutgoingActivityError, OutgoingError,
OutgoingWorkflowError, RetryState, TimeoutType, WorkflowSignalError,
};