[−][src]Enum holochain_wasmer_guest::WasmError
Enum of all possible ERROR codes that a Zome API Function could return.
Variants
while converting pointers and lengths between u64 and i64 across the host/guest we hit either a negative number (cannot fit in u64) or very large number (cannot fit in i64) negative pointers and lengths are almost certainly indicative of a critical bug somewhere max i64 represents about 9.2 exabytes so should keep us going long enough to patch wasmer if commercial hardware ever threatens to overstep this limit
SerializedBytes(SerializedBytesError)
similar to Utf8 we have somehow hit a struct that isn't round-tripping through SerializedBytes correctly, which should be impossible for well behaved serialization
something went wrong while writing or reading bytes to/from wasm memory this means something like "reading 16 bytes did not produce 2x WasmSize ints" or maybe even "failed to write a byte to some pre-allocated wasm memory" whatever this is it is very bad and probably not recoverable
GuestResultHandling(String)
failed to take bytes out of the guest and do something with it the string is whatever error message comes back from the interal process
Zome(String)
something to do with zome logic that we don't know about
Compile(String)
somehow wasmer failed to compile machine code from wasm byte code
CallError(String)
Trait Implementations
impl Clone for WasmError
[src]
impl Debug for WasmError
[src]
impl<'de> Deserialize<'de> for WasmError
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<WasmError, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<WasmError, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Display for WasmError
[src]
impl Eq for WasmError
[src]
impl Error for WasmError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<SerializedBytesError> for WasmError
[src]
fn from(error: SerializedBytesError) -> WasmError
[src]
impl From<TryFromIntError> for WasmError
[src]
fn from(TryFromIntError) -> WasmError
[src]
impl From<TryFromSliceError> for WasmError
[src]
fn from(TryFromSliceError) -> WasmError
[src]
impl Hash for WasmError
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for WasmError
[src]
fn cmp(&self, other: &WasmError) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<WasmError> for WasmError
[src]
impl PartialOrd<WasmError> for WasmError
[src]
fn partial_cmp(&self, other: &WasmError) -> Option<Ordering>
[src]
fn lt(&self, other: &WasmError) -> bool
[src]
fn le(&self, other: &WasmError) -> bool
[src]
fn gt(&self, other: &WasmError) -> bool
[src]
fn ge(&self, other: &WasmError) -> bool
[src]
impl Serialize for WasmError
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<'_> TryFrom<&'_ WasmError> for SerializedBytes
[src]
type Error = SerializedBytesError
The type returned in the event of a conversion error.
fn try_from(t: &WasmError) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for WasmError
[src]
type Error = SerializedBytesError
The type returned in the event of a conversion error.
fn try_from(sb: SerializedBytes) -> Result<WasmError, SerializedBytesError>
[src]
impl TryFrom<WasmError> for SerializedBytes
[src]
type Error = SerializedBytesError
The type returned in the event of a conversion error.
fn try_from(t: WasmError) -> Result<SerializedBytes, SerializedBytesError>
[src]
Auto Trait Implementations
impl RefUnwindSafe for WasmError
impl Send for WasmError
impl Sync for WasmError
impl Unpin for WasmError
impl UnwindSafe for WasmError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,