pub enum CatalogError {
Show 25 variants
AlreadyExists {
kind: CatalogObjectKind,
namespace: String,
name: String,
fragment: Fragment,
},
NotFound {
kind: CatalogObjectKind,
namespace: String,
name: String,
fragment: Fragment,
},
MigrationNoRollbackBody {
name: String,
fragment: Fragment,
},
MigrationHashMismatch {
name: String,
expected: Hash128,
actual: Hash128,
expected_hex: String,
actual_hex: String,
fragment: Fragment,
},
ColumnAlreadyExists {
kind: CatalogObjectKind,
namespace: String,
name: String,
column: String,
fragment: Fragment,
},
DictionaryTypeMismatch {
column: String,
column_type: Type,
dictionary: String,
dictionary_value_type: Type,
fragment: Fragment,
},
AutoIncrementInvalidType {
column: String,
ty: Type,
fragment: Fragment,
},
ColumnPropertyAlreadyExists {
policy: String,
column: String,
},
AlreadyPendingInTransaction {
kind: CatalogObjectKind,
namespace: String,
name: Option<String>,
fragment: Fragment,
},
CannotUpdateDeleted {
kind: CatalogObjectKind,
namespace: String,
name: Option<String>,
fragment: Fragment,
},
CannotDeleteAlreadyDeleted {
kind: CatalogObjectKind,
namespace: String,
name: Option<String>,
fragment: Fragment,
},
PrimaryKeyEmpty {
fragment: Fragment,
},
PrimaryKeyColumnNotFound {
fragment: Fragment,
column_id: u64,
},
SubscriptionAlreadyExists {
fragment: Fragment,
name: String,
},
SubscriptionNotFound {
fragment: Fragment,
name: String,
},
ColumnNotFound {
kind: CatalogObjectKind,
namespace: String,
name: String,
column: String,
fragment: Fragment,
},
InUse {
kind: CatalogObjectKind,
namespace: String,
name: Option<String>,
dependents: String,
fragment: Fragment,
},
CannotDropEphemeralProcedure {
kind: String,
name: String,
fragment: Fragment,
},
CannotRegisterPersistentAsEphemeral {
kind: String,
},
ConfigStorageKeyNotFound(String),
ConfigValueInvalid(String),
ConfigTypeMismatch {
key: String,
expected: Vec<Type>,
actual: Type,
},
ConfigInvalidValue {
key: String,
reason: String,
},
PolicyInvalidOperation {
target_type: &'static str,
operation: String,
valid: &'static [&'static str],
policy_name: Option<String>,
},
InvalidBindingConfig {
reason: String,
fragment: Fragment,
},
}Variants§
AlreadyExists
NotFound
MigrationNoRollbackBody
MigrationHashMismatch
Fields
ColumnAlreadyExists
DictionaryTypeMismatch
Fields
AutoIncrementInvalidType
ColumnPropertyAlreadyExists
AlreadyPendingInTransaction
CannotUpdateDeleted
CannotDeleteAlreadyDeleted
PrimaryKeyEmpty
PrimaryKeyColumnNotFound
SubscriptionAlreadyExists
SubscriptionNotFound
ColumnNotFound
InUse
Fields
§
kind: CatalogObjectKindCannotDropEphemeralProcedure
CannotRegisterPersistentAsEphemeral
ConfigStorageKeyNotFound(String)
ConfigValueInvalid(String)
ConfigTypeMismatch
ConfigInvalidValue
PolicyInvalidOperation
Fields
InvalidBindingConfig
Trait Implementations§
Source§impl Debug for CatalogError
impl Debug for CatalogError
Source§impl Display for CatalogError
impl Display for CatalogError
Source§impl Error for CatalogError
impl Error for CatalogError
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 From<(ConfigKey, AcceptError)> for CatalogError
impl From<(ConfigKey, AcceptError)> for CatalogError
Source§fn from((key, err): (ConfigKey, AcceptError)) -> Self
fn from((key, err): (ConfigKey, AcceptError)) -> Self
Converts to this type from the input type.
Source§impl From<CatalogError> for Error
impl From<CatalogError> for Error
Source§fn from(err: CatalogError) -> Self
fn from(err: CatalogError) -> Self
Converts to this type from the input type.
Source§impl IntoDiagnostic for CatalogError
impl IntoDiagnostic for CatalogError
Source§fn into_diagnostic(self) -> Diagnostic
fn into_diagnostic(self) -> Diagnostic
Convert self into a Diagnostic with error code, message, fragment, and other metadata.
Auto Trait Implementations§
impl Freeze for CatalogError
impl RefUnwindSafe for CatalogError
impl Send for CatalogError
impl Sync for CatalogError
impl Unpin for CatalogError
impl UnsafeUnpin for CatalogError
impl UnwindSafe for CatalogError
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> 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>
Converts
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>
Converts
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 more