Enum mz_adapter::catalog::error::ErrorKind
source · pub enum ErrorKind {
Show 26 variants
Corruption {
detail: String,
},
OidExhaustion,
Sql(SqlCatalogError),
ReservedSchemaName(String),
ReservedRoleName(String),
ReservedSystemRoleName(String),
ReservedClusterName(String),
ReservedReplicaName(String),
ReadOnlyCluster(String),
ReadOnlyDatabase(String),
ReadOnlySystemSchema(String),
ReadOnlyItem(String),
SchemaNotEmpty(String),
InvalidTemporaryDependency(String),
InvalidTemporarySchema,
UnsatisfiableLoggingDependency {
depender_name: String,
},
AmbiguousRename(AmbiguousRename),
TypeRename(String),
AmbientSchemaRename(String),
FailedMigration {
last_seen_version: String,
this_version: &'static str,
cause: String,
},
FailpointReached(String),
Unstructured(String),
Durable(DurableCatalogError),
Uuid(Error),
CircularRoleMembership {
role_name: String,
member_name: String,
},
ManagedCluster(String),
}
Variants§
Corruption
OidExhaustion
Sql(SqlCatalogError)
ReservedSchemaName(String)
ReservedRoleName(String)
ReservedSystemRoleName(String)
ReservedClusterName(String)
ReservedReplicaName(String)
ReadOnlyCluster(String)
ReadOnlyDatabase(String)
ReadOnlySystemSchema(String)
ReadOnlyItem(String)
SchemaNotEmpty(String)
InvalidTemporaryDependency(String)
InvalidTemporarySchema
UnsatisfiableLoggingDependency
AmbiguousRename(AmbiguousRename)
TypeRename(String)
AmbientSchemaRename(String)
FailedMigration
FailpointReached(String)
Unstructured(String)
Durable(DurableCatalogError)
Uuid(Error)
CircularRoleMembership
ManagedCluster(String)
Trait Implementations§
source§impl Error for ErrorKind
impl Error for ErrorKind
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<AmbiguousRename> for ErrorKind
impl From<AmbiguousRename> for ErrorKind
source§fn from(source: AmbiguousRename) -> Self
fn from(source: AmbiguousRename) -> Self
Converts to this type from the input type.
source§impl From<CatalogError> for ErrorKind
impl From<CatalogError> for ErrorKind
source§fn from(source: SqlCatalogError) -> Self
fn from(source: SqlCatalogError) -> Self
Converts to this type from the input type.
source§impl From<DurableCatalogError> for ErrorKind
impl From<DurableCatalogError> for ErrorKind
source§fn from(source: DurableCatalogError) -> Self
fn from(source: DurableCatalogError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
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<E> ErrorExt for Ewhere
E: Error + ?Sized,
impl<E> ErrorExt for Ewhere E: Error + ?Sized,
source§fn display_with_causes(&self) -> ErrorChainFormatter<&Self>
fn display_with_causes(&self) -> ErrorChainFormatter<&Self>
Returns a type that displays the error, along with the chain of source errors or
causes, if there are any. Read more
source§fn to_string_with_causes(&self) -> String
fn to_string_with_causes(&self) -> String
Converts
self
to a string String
, along with the chain of source errors or
causes, if there are any. Read moresource§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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.