[][src]Enum exonum::runtime::CoreError

#[non_exhaustive]pub enum CoreError {
    IncorrectRuntime,
    UnknownArtifactId,
    ArtifactAlreadyDeployed,
    ArtifactNotDeployed,
    ServiceNameExists,
    ServiceIdExists,
    ServiceNotActive,
    IncorrectInstanceId,
    StackOverflow,
    ServicePending,
    InvalidServiceTransition,
    CannotUpgradeService,
    NoMigration,
    CannotResumeService,
    IncorrectCall,
    CannotUnloadArtifact,
}

List of possible core errors.

Note that in most cases you don't need to spawn a core error, unless your service is providing some wrapper for core logic and should behave just like core.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IncorrectRuntime

Runtime identifier is incorrect in this context.

UnknownArtifactId

Artifact identifier is unknown.

ArtifactAlreadyDeployed

Artifact with the given identifier is already deployed.

ArtifactNotDeployed

Artifact with the given identifier is not deployed.

ServiceNameExists

Specified service name is already used.

ServiceIdExists

Specified service identifier is already used.

ServiceNotActive

Specified service is not active.

IncorrectInstanceId

Suitable runtime for the given service instance ID is not found.

StackOverflow

Maximum depth of the call stack has been reached.

ServicePending

Service instance is already transitioning to a new status.

InvalidServiceTransition

Requested service transition is invalid given the current service status.

CannotUpgradeService

The artifact to migrate the service to is not a newer version of the current service artifact.

NoMigration

Attempt to rollback or flush migration for a service which has no pending migration.

CannotResumeService

An attempt to resume the service instance with the wrong artifact. The specified artifact has a different name or an inappropriate version.

IncorrectCall

Incorrect call handler: an inner call has returned an error, but it was not propagated.

CannotUnloadArtifact

Cannot unload artifact.

Trait Implementations

impl Clone for CoreError[src]

impl Copy for CoreError[src]

impl Debug for CoreError[src]

impl Display for CoreError[src]

impl Eq for CoreError[src]

impl ExecutionFail for CoreError[src]

impl From<CoreError> for ExecutionError[src]

impl Hash for CoreError[src]

impl Ord for CoreError[src]

impl PartialEq<CoreError> for CoreError[src]

impl PartialOrd<CoreError> for CoreError[src]

impl StructuralEq for CoreError[src]

impl StructuralPartialEq for CoreError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,