[][src]Enum hdk::error::ZomeApiError

pub enum ZomeApiError {
    Internal(String),
    FunctionNotImplemented,
    HashNotFound,
    ValidationFailed(String),
    Timeout,
}

Error for DNA developers to use in their Zome code. This does not have to be sent back to Ribosome unless its an InternalError.

Variants

Internal(String)FunctionNotImplementedHashNotFoundValidationFailed(String)Timeout

Trait Implementations

impl PartialEq<ZomeApiError> for ZomeApiError[src]

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

impl From<ZomeApiError> for JsonString[src]

impl From<ZomeApiError> for HolochainError[src]

impl From<ZomeApiError> for String[src]

impl From<HolochainError> for ZomeApiError[src]

impl From<!> for ZomeApiError[src]

impl From<String> for ZomeApiError[src]

impl From<RibosomeErrorCode> for ZomeApiError[src]

impl From<AllocationError> for ZomeApiError[src]

impl Clone for ZomeApiError[src]

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

Performs copy-assignment from source. Read more

impl Debug for ZomeApiError[src]

impl Display for ZomeApiError[src]

impl<'a> TryFrom<&'a JsonString> for ZomeApiError[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 ZomeApiError[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 ZomeApiError[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 ZomeApiError[src]

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

impl JsonError for ZomeApiError[src]

Auto Trait Implementations

impl Send for ZomeApiError

impl Sync for ZomeApiError

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

impl<T> Same for T

type Output = T

Should always be Self