pub enum AdapterError<E> {
Provider(E),
TenantValidation {
message: String,
},
ContextConversion {
message: String,
},
}Expand description
Error types for adapter operations.
Variants§
Provider(E)
Error from the underlying provider
TenantValidation
Tenant validation error
ContextConversion
Context conversion error
Trait Implementations§
Source§impl<E: Debug> Debug for AdapterError<E>
impl<E: Debug> Debug for AdapterError<E>
Source§impl<E> Display for AdapterError<E>where
E: Display,
impl<E> Display for AdapterError<E>where
E: Display,
Source§impl<E> Error for AdapterError<E>
impl<E> Error for AdapterError<E>
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()
Auto Trait Implementations§
impl<E> Freeze for AdapterError<E>where
E: Freeze,
impl<E> RefUnwindSafe for AdapterError<E>where
E: RefUnwindSafe,
impl<E> Send for AdapterError<E>where
E: Send,
impl<E> Sync for AdapterError<E>where
E: Sync,
impl<E> Unpin for AdapterError<E>where
E: Unpin,
impl<E> UnwindSafe for AdapterError<E>where
E: UnwindSafe,
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
Source§impl<T> TenantValidator for T
impl<T> TenantValidator for T
Source§fn validate_tenant_context(
&self,
expected_tenant_id: &str,
context: &RequestContext,
) -> Result<(), String>
fn validate_tenant_context( &self, expected_tenant_id: &str, context: &RequestContext, ) -> Result<(), String>
Validate that the context has the expected tenant.
Source§fn validate_single_tenant_context(
&self,
context: &RequestContext,
) -> Result<(), String>
fn validate_single_tenant_context( &self, context: &RequestContext, ) -> Result<(), String>
Validate that the context is for single-tenant operation.
Source§fn require_tenant_context(&self, context: &RequestContext) -> Result<(), String>
fn require_tenant_context(&self, context: &RequestContext) -> Result<(), String>
Extract tenant context or return error for multi-tenant operations.