[][src]Struct holochain_core_types::error::CoreError

pub struct CoreError {
    pub kind: HolochainError,
    pub file: String,
    pub line: String,
}

Holochain Core Error struct Any Error in Core should be wrapped in a CoreError so it can be passed to the Zome and back to the Holochain Instance via wasm memory. Follows the Error + ErrorKind pattern Holds extra debugging info for indicating where in code ther error occured.

Fields

kind: HolochainErrorfile: Stringline: String

Implementations

impl CoreError[src]

pub fn new(hc_err: HolochainError) -> Self[src]

Trait Implementations

impl Clone for CoreError[src]

impl Debug for CoreError[src]

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

impl Display for CoreError[src]

impl Eq for CoreError[src]

impl Error for CoreError[src]

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

impl From<CoreError> for JsonString[src]

impl Hash for CoreError[src]

impl PartialEq<CoreError> for CoreError[src]

impl Serialize for CoreError[src]

impl StructuralEq for CoreError[src]

impl StructuralPartialEq for CoreError[src]

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

type Error = JsonError

The type returned in the event of a conversion error.

impl TryFrom<JsonString> for CoreError[src]

type Error = JsonError

The type returned in the event of a conversion error.

impl TryFrom<ZomeApiInternalResult> for CoreError[src]

type Error = HolochainError

The type returned in the event of a conversion error.

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> Clone for T where
    T: Clone
[src]

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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>,