pub struct CleanroomError {
pub kind: ErrorKind,
pub message: String,
pub context: Option<String>,
pub source: Option<String>,
pub timestamp: DateTime<Utc>,
}Expand description
Comprehensive error type for cleanroom operations
Fields§
§kind: ErrorKindError kind
message: StringError message
context: Option<String>Additional context
source: Option<String>Source error (if any)
timestamp: DateTime<Utc>Timestamp when error occurred
Implementations§
Source§impl CleanroomError
impl CleanroomError
Sourcepub fn with_context(self, context: impl Into<String>) -> Self
pub fn with_context(self, context: impl Into<String>) -> Self
Create a new cleanroom error with context
Sourcepub fn with_source(self, source: impl Into<String>) -> Self
pub fn with_source(self, source: impl Into<String>) -> Self
Create a new cleanroom error with source
Sourcepub fn container_error(message: impl Into<String>) -> Self
pub fn container_error(message: impl Into<String>) -> Self
Create a container error
Sourcepub fn network_error(message: impl Into<String>) -> Self
pub fn network_error(message: impl Into<String>) -> Self
Create a network error
Sourcepub fn resource_limit_exceeded(message: impl Into<String>) -> Self
pub fn resource_limit_exceeded(message: impl Into<String>) -> Self
Create a resource limit exceeded error
Sourcepub fn timeout_error(message: impl Into<String>) -> Self
pub fn timeout_error(message: impl Into<String>) -> Self
Create a timeout error
Sourcepub fn configuration_error(message: impl Into<String>) -> Self
pub fn configuration_error(message: impl Into<String>) -> Self
Create a configuration error
Sourcepub fn policy_violation_error(message: impl Into<String>) -> Self
pub fn policy_violation_error(message: impl Into<String>) -> Self
Create a policy violation error
Sourcepub fn deterministic_error(message: impl Into<String>) -> Self
pub fn deterministic_error(message: impl Into<String>) -> Self
Create a deterministic execution error
Sourcepub fn coverage_error(message: impl Into<String>) -> Self
pub fn coverage_error(message: impl Into<String>) -> Self
Create a coverage tracking error
Sourcepub fn snapshot_error(message: impl Into<String>) -> Self
pub fn snapshot_error(message: impl Into<String>) -> Self
Create a snapshot error
Sourcepub fn tracing_error(message: impl Into<String>) -> Self
pub fn tracing_error(message: impl Into<String>) -> Self
Create a tracing error
Sourcepub fn redaction_error(message: impl Into<String>) -> Self
pub fn redaction_error(message: impl Into<String>) -> Self
Create a redaction error
Sourcepub fn report_error(message: impl Into<String>) -> Self
pub fn report_error(message: impl Into<String>) -> Self
Create a report generation error
Sourcepub fn connection_failed(message: impl Into<String>) -> Self
pub fn connection_failed(message: impl Into<String>) -> Self
Create a connection failed error
Sourcepub fn service_error(message: impl Into<String>) -> Self
pub fn service_error(message: impl Into<String>) -> Self
Create a service error
Sourcepub fn serialization_error(message: impl Into<String>) -> Self
pub fn serialization_error(message: impl Into<String>) -> Self
Create a serialization error
Sourcepub fn validation_error(message: impl Into<String>) -> Self
pub fn validation_error(message: impl Into<String>) -> Self
Create a validation error
Sourcepub fn internal_error(message: impl Into<String>) -> Self
pub fn internal_error(message: impl Into<String>) -> Self
Create an internal error
Sourcepub fn config_error(message: impl Into<String>) -> Self
pub fn config_error(message: impl Into<String>) -> Self
Create a configuration error (alias for configuration_error)
Sourcepub fn execution_error(message: impl Into<String>) -> Self
pub fn execution_error(message: impl Into<String>) -> Self
Create an execution error (alias for internal_error)
Sourcepub fn template_error(message: impl Into<String>) -> Self
pub fn template_error(message: impl Into<String>) -> Self
Create a template error
Sourcepub fn not_implemented(message: impl Into<String>) -> Self
pub fn not_implemented(message: impl Into<String>) -> Self
Create a not implemented error
Trait Implementations§
Source§impl Clone for CleanroomError
impl Clone for CleanroomError
Source§fn clone(&self) -> CleanroomError
fn clone(&self) -> CleanroomError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CleanroomError
impl Debug for CleanroomError
Source§impl<'de> Deserialize<'de> for CleanroomError
impl<'de> Deserialize<'de> for CleanroomError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for CleanroomError
impl Display for CleanroomError
Source§impl Error for CleanroomError
impl Error for CleanroomError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<BackendError> for CleanroomError
impl From<BackendError> for CleanroomError
Source§fn from(err: BackendError) -> Self
fn from(err: BackendError) -> Self
Source§impl From<Error> for CleanroomError
impl From<Error> for CleanroomError
Source§impl From<Error> for CleanroomError
impl From<Error> for CleanroomError
Source§impl From<TemplateError> for CleanroomError
impl From<TemplateError> for CleanroomError
Source§fn from(err: TemplateError) -> Self
fn from(err: TemplateError) -> Self
Source§impl From<TestcontainersError> for CleanroomError
impl From<TestcontainersError> for CleanroomError
Source§fn from(err: TestcontainersError) -> Self
fn from(err: TestcontainersError) -> Self
Auto Trait Implementations§
impl Freeze for CleanroomError
impl RefUnwindSafe for CleanroomError
impl Send for CleanroomError
impl Sync for CleanroomError
impl Unpin for CleanroomError
impl UnwindSafe for CleanroomError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.