1pub use crate::workflow_registry::WorkflowRegistrationError;
4use temporalio_client::PluginApplyError;
5pub use temporalio_sdk_core::WorkerValidationError;
6
7#[derive(Debug, thiserror::Error)]
11#[non_exhaustive]
12pub enum WorkerCreateError {
13 #[error(transparent)]
15 Plugin(#[from] PluginApplyError),
16 #[error("worker initialization failed: {0}")]
18 Initialization(#[source] anyhow::Error),
19}
20
21#[derive(Debug, thiserror::Error)]
23#[non_exhaustive]
24pub enum WorkerRunError {
25 #[error("worker validation failed: {0}")]
27 Validation(#[source] WorkerValidationError),
28 #[error("{message}")]
30 Fatal {
31 message: String,
33 #[source]
35 source: Box<dyn std::error::Error + Send + Sync + 'static>,
36 },
37}
38
39pub use temporalio_common::error::{
40 ActivityExecutionError, ApplicationErrorCategory, ApplicationFailure,
41 ChildWorkflowExecutionError, ChildWorkflowStartError, OutgoingActivityError, OutgoingError,
42 OutgoingWorkflowError, RetryState, TimeoutType, WorkflowSignalError,
43};