#[non_exhaustive]pub enum StartSagaError {
DefinitionInactive,
InvalidPayload,
DefinitionEmpty,
RequestConflict,
TenantQuotaExceeded,
}Expand description
业务作用:封闭 Saga 创建的确定性拒绝原因,供协议适配器按类型映射稳定状态。
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DefinitionInactive
指定 workflow/version 当前不允许创建新实例。
InvalidPayload
正文格式、schema 或双重输入来源不符合冻结步骤合同。
DefinitionEmpty
已发布 definition 没有可执行步骤。
RequestConflict
Saga 身份或业务幂等槽已被不同启动请求占用。
TenantQuotaExceeded
租户在飞实例配额已耗尽。
Implementations§
Source§impl StartSagaError
impl StartSagaError
Sourcepub fn from_error(error: &Error) -> Option<Self>
pub fn from_error(error: &Error) -> Option<Self>
业务作用:从完整错误链中提取协议层可以安全公开的 Saga 创建拒绝类别。
参数说明:error 是运行核心返回且可能附加调用上下文的完整错误链。
返回:包含封闭创建拒绝时返回对应类别;基础设施或未知失败返回 None。
Trait Implementations§
Source§impl Clone for StartSagaError
impl Clone for StartSagaError
impl Copy for StartSagaError
Source§impl Debug for StartSagaError
impl Debug for StartSagaError
Source§impl Display for StartSagaError
impl Display for StartSagaError
impl Eq for StartSagaError
Source§impl Error for StartSagaError
impl Error for StartSagaError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for StartSagaError
impl PartialEq for StartSagaError
impl StructuralPartialEq for StartSagaError
Auto Trait Implementations§
impl Freeze for StartSagaError
impl RefUnwindSafe for StartSagaError
impl Send for StartSagaError
impl Sync for StartSagaError
impl Unpin for StartSagaError
impl UnsafeUnpin for StartSagaError
impl UnwindSafe for StartSagaError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more