#[non_exhaustive]pub enum ErrorCode {
Show 29 variants
Unspecified,
ConnectionFailure,
AuthenticationFailure,
InvalidConnectionProfileConfig,
VersionIncompatibility,
ConnectionProfileTypesIncompatibility,
NoPglogicalInstalled,
PglogicalNodeAlreadyExists,
InvalidWalLevel,
InvalidSharedPreloadLibrary,
InsufficientMaxReplicationSlots,
InsufficientMaxWalSenders,
InsufficientMaxWorkerProcesses,
UnsupportedExtensions,
UnsupportedMigrationType,
InvalidRdsLogicalReplication,
UnsupportedGtidMode,
UnsupportedTableDefinition,
UnsupportedDefiner,
CantRestartRunningMigration,
SourceAlreadySetup,
TablesWithLimitedSupport,
UnsupportedDatabaseLocale,
UnsupportedDatabaseFdwConfig,
ErrorRdbms,
SourceSizeExceedsThreshold,
ExistingConflictingDatabases,
ParallelImportInsufficientPrivilege,
UnknownValue(UnknownValue),
}Expand description
A general error code describing the type of error that occurred.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified
An unknown error occurred
ConnectionFailure
We failed to connect to one of the connection profile.
AuthenticationFailure
We failed to authenticate to one of the connection profile.
InvalidConnectionProfileConfig
One of the involved connection profiles has an invalid configuration.
VersionIncompatibility
The versions of the source and the destination are incompatible.
ConnectionProfileTypesIncompatibility
The types of the source and the destination are incompatible.
NoPglogicalInstalled
No pglogical extension installed on databases, applicable for postgres.
PglogicalNodeAlreadyExists
pglogical node already exists on databases, applicable for postgres.
InvalidWalLevel
The value of parameter wal_level is not set to logical.
The value of parameter shared_preload_libraries does not include pglogical.
InsufficientMaxReplicationSlots
The value of parameter max_replication_slots is not sufficient.
InsufficientMaxWalSenders
The value of parameter max_wal_senders is not sufficient.
InsufficientMaxWorkerProcesses
The value of parameter max_worker_processes is not sufficient.
UnsupportedExtensions
Extensions installed are either not supported or having unsupported versions.
UnsupportedMigrationType
Unsupported migration type.
InvalidRdsLogicalReplication
Invalid RDS logical replication.
UnsupportedGtidMode
The gtid_mode is not supported, applicable for MySQL.
UnsupportedTableDefinition
The table definition is not support due to missing primary key or replica identity.
UnsupportedDefiner
The definer is not supported.
CantRestartRunningMigration
Migration is already running at the time of restart request.
SourceAlreadySetup
The source already has a replication setup.
TablesWithLimitedSupport
The source has tables with limited support. E.g. PostgreSQL tables without primary keys.
UnsupportedDatabaseLocale
The source uses an unsupported locale.
UnsupportedDatabaseFdwConfig
The source uses an unsupported Foreign Data Wrapper configuration.
ErrorRdbms
There was an underlying RDBMS error.
SourceSizeExceedsThreshold
The source DB size in Bytes exceeds a certain threshold. The migration might require an increase of quota, or might not be supported.
ExistingConflictingDatabases
The destination DB contains existing databases that are conflicting with those in the source DB.
ParallelImportInsufficientPrivilege
Insufficient privilege to enable the parallelism configuration.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using ErrorCode::value or ErrorCode::name.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
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>,
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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> 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> 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.