[][src]Enum holochain_core_types::error::HolochainError

pub enum HolochainError {
    ErrorGeneric(String),
    NotImplemented(String),
    LoggingError,
    DnaMissing,
    Dna(DnaError),
    IoError(String),
    SerializationError(String),
    InvalidOperationOnSysEntry,
    CapabilityCheckFailed,
    ValidationFailed(String),
    ValidationPending,
    Ribosome(RibosomeErrorCode),
    RibosomeFailed(String),
    ConfigError(String),
    Timeout,
    InitializationFailed(String),
    DnaHashMismatch(HashStringHashString),
}

TODO rename to CoreErrorKind Enum holding all Holochain Core errors

Variants

ErrorGeneric(String)NotImplemented(String)LoggingErrorDnaMissingDna(DnaError)IoError(String)SerializationError(String)InvalidOperationOnSysEntryCapabilityCheckFailedValidationFailed(String)ValidationPendingRibosome(RibosomeErrorCode)RibosomeFailed(String)ConfigError(String)TimeoutInitializationFailed(String)DnaHashMismatch(HashStringHashString)

Methods

impl HolochainError[src]

pub fn new(msg: &str) -> HolochainError[src]

Trait Implementations

impl JsonError for HolochainError[src]

impl PartialEq<HolochainError> for HolochainError[src]

impl From<AttributeError> for HolochainError[src]

impl From<HolochainError> for RibosomeEncodedValue[src]

impl From<HolochainError> for RibosomeErrorCode[src]

impl<'a> From<&'a HolochainError> for JsonString[src]

impl From<HolochainError> for JsonString[src]

impl From<HolochainError> for String[src]

impl From<String> for HolochainError[src]

impl From<&'static str> for HolochainError[src]

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

impl From<Error> for HolochainError[src]

impl From<Error> for HolochainError[src]

impl From<DecodeError> for HolochainError[src]

impl From<Utf8Error> for HolochainError[src]

impl From<Canceled> for HolochainError[src]

impl From<NoneError> for HolochainError[src]

impl From<HcidError> for HolochainError[src]

impl Clone for HolochainError[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Ord for HolochainError[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Eq for HolochainError[src]

impl PartialOrd<HolochainError> for HolochainError[src]

impl Debug for HolochainError[src]

impl Display for HolochainError[src]

impl Hash for HolochainError[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a> TryFrom<&'a JsonString> for HolochainError[src]

type Error = HolochainError

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl TryFrom<JsonString> for HolochainError[src]

type Error = HolochainError

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl Error for HolochainError[src]

fn description(&self) -> &str
1.0.0
[src]

This method is soft-deprecated. Read more

fn cause(&self) -> Option<&dyn Error>
1.0.0
[src]

Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

The lower-level cause of this error, if any. Read more

fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0
[src]

The lower-level source of this error, if any. Read more

impl Serialize for HolochainError[src]

impl<'de> Deserialize<'de> for HolochainError[src]

Auto Trait Implementations

impl Send for HolochainError

impl Sync for HolochainError

Blanket Implementations

impl<T> From for T[src]

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

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Same for T

type Output = T

Should always be Self

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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