pub enum BridgeErrorCode {
Show 18 variants
InvalidArgument,
UnsupportedRoute,
ProviderAuthRequired,
ProviderTransport,
ProviderHttp,
ProviderInvalidResponse,
QuoteUnavailable,
QuoteExpired,
QuoteMismatch,
BuildInvalid,
StatusNotFound,
Timeout,
Aborted,
LocalRpcRequired,
SourceRpcTransport,
SourceRpcInvalidResponse,
LocalPlanInvalid,
LocalBuildInvalid,
}Expand description
Stable error codes for the optional bridge client.
Variants§
InvalidArgument
The request or bridge configuration is invalid.
UnsupportedRoute
The requested native EURC direction is outside the reviewed routes.
ProviderAuthRequired
The provider requires a builder key for this operation.
ProviderTransport
The provider could not be reached or returned a redirect.
ProviderHttp
The provider returned a non-success HTTP status.
ProviderInvalidResponse
The provider body or schema is invalid.
No valid Swift v2 quote was returned.
QuoteExpired
A quote is expired or too close to expiry.
QuoteMismatch
A supplied quote does not match its signed raw object or request.
BuildInvalid
The provider returned an invalid unsigned build.
StatusNotFound
The explorer did not find the source transaction.
Timeout
The provider request exceeded the configured timeout.
Aborted
The caller cancelled the provider request.
LocalRpcRequired
A local build needs a configured source-chain RPC endpoint.
SourceRpcTransport
The configured source-chain RPC failed to respond.
SourceRpcInvalidResponse
The configured source-chain RPC response is invalid.
LocalPlanInvalid
A local source-swap plan is invalid.
LocalBuildInvalid
A local unsigned build is invalid.
Implementations§
Source§impl BridgeErrorCode
impl BridgeErrorCode
Sourcepub const BRIDGE_INVALID_ARGUMENT: Self = Self::InvalidArgument
pub const BRIDGE_INVALID_ARGUMENT: Self = Self::InvalidArgument
Stable spelling for Self::InvalidArgument.
Sourcepub const BRIDGE_UNSUPPORTED_ROUTE: Self = Self::UnsupportedRoute
pub const BRIDGE_UNSUPPORTED_ROUTE: Self = Self::UnsupportedRoute
Stable spelling for Self::UnsupportedRoute.
Sourcepub const BRIDGE_PROVIDER_AUTH_REQUIRED: Self = Self::ProviderAuthRequired
pub const BRIDGE_PROVIDER_AUTH_REQUIRED: Self = Self::ProviderAuthRequired
Stable spelling for Self::ProviderAuthRequired.
Sourcepub const BRIDGE_PROVIDER_TRANSPORT: Self = Self::ProviderTransport
pub const BRIDGE_PROVIDER_TRANSPORT: Self = Self::ProviderTransport
Stable spelling for Self::ProviderTransport.
Sourcepub const BRIDGE_PROVIDER_HTTP: Self = Self::ProviderHttp
pub const BRIDGE_PROVIDER_HTTP: Self = Self::ProviderHttp
Stable spelling for Self::ProviderHttp.
Sourcepub const BRIDGE_PROVIDER_INVALID_RESPONSE: Self = Self::ProviderInvalidResponse
pub const BRIDGE_PROVIDER_INVALID_RESPONSE: Self = Self::ProviderInvalidResponse
Stable spelling for Self::ProviderInvalidResponse.
Sourcepub const BRIDGE_QUOTE_UNAVAILABLE: Self = Self::QuoteUnavailable
pub const BRIDGE_QUOTE_UNAVAILABLE: Self = Self::QuoteUnavailable
Stable spelling for Self::QuoteUnavailable.
Sourcepub const BRIDGE_QUOTE_EXPIRED: Self = Self::QuoteExpired
pub const BRIDGE_QUOTE_EXPIRED: Self = Self::QuoteExpired
Stable spelling for Self::QuoteExpired.
Sourcepub const BRIDGE_QUOTE_MISMATCH: Self = Self::QuoteMismatch
pub const BRIDGE_QUOTE_MISMATCH: Self = Self::QuoteMismatch
Stable spelling for Self::QuoteMismatch.
Sourcepub const BRIDGE_BUILD_INVALID: Self = Self::BuildInvalid
pub const BRIDGE_BUILD_INVALID: Self = Self::BuildInvalid
Stable spelling for Self::BuildInvalid.
Sourcepub const BRIDGE_STATUS_NOT_FOUND: Self = Self::StatusNotFound
pub const BRIDGE_STATUS_NOT_FOUND: Self = Self::StatusNotFound
Stable spelling for Self::StatusNotFound.
Sourcepub const BRIDGE_TIMEOUT: Self = Self::Timeout
pub const BRIDGE_TIMEOUT: Self = Self::Timeout
Stable spelling for Self::Timeout.
Sourcepub const BRIDGE_ABORTED: Self = Self::Aborted
pub const BRIDGE_ABORTED: Self = Self::Aborted
Stable spelling for Self::Aborted.
Sourcepub const BRIDGE_LOCAL_RPC_REQUIRED: Self = Self::LocalRpcRequired
pub const BRIDGE_LOCAL_RPC_REQUIRED: Self = Self::LocalRpcRequired
Stable spelling for Self::LocalRpcRequired.
Sourcepub const BRIDGE_SOURCE_RPC_TRANSPORT: Self = Self::SourceRpcTransport
pub const BRIDGE_SOURCE_RPC_TRANSPORT: Self = Self::SourceRpcTransport
Stable spelling for Self::SourceRpcTransport.
Sourcepub const BRIDGE_SOURCE_RPC_INVALID_RESPONSE: Self = Self::SourceRpcInvalidResponse
pub const BRIDGE_SOURCE_RPC_INVALID_RESPONSE: Self = Self::SourceRpcInvalidResponse
Stable spelling for Self::SourceRpcInvalidResponse.
Sourcepub const BRIDGE_LOCAL_PLAN_INVALID: Self = Self::LocalPlanInvalid
pub const BRIDGE_LOCAL_PLAN_INVALID: Self = Self::LocalPlanInvalid
Stable spelling for Self::LocalPlanInvalid.
Sourcepub const BRIDGE_LOCAL_BUILD_INVALID: Self = Self::LocalBuildInvalid
pub const BRIDGE_LOCAL_BUILD_INVALID: Self = Self::LocalBuildInvalid
Stable spelling for Self::LocalBuildInvalid.