pub enum FunctionCallError {
    WasmUnknownError,
    EvmError,
    CompilationError(CompilationError),
    LinkError {
        msg: String,
    },
    MethodResolveError(MethodResolveError),
    WasmTrap(WasmTrap),
    HostError(HostError),
    ExecutionError(String),
}Expand description
Serializable version of near-vm-runner::FunctionCallError.
Must never reorder/remove elements, can only add new variants at the end (but do that very carefully). It describes stable serialization format, and only used by serialization logic.
JSON schema
{
 "description": "Serializable version of `near-vm-runner::FunctionCallError`.\n\n Must never reorder/remove elements, can only add new variants at the end (but do that very\n carefully). It describes stable serialization format, and only used by serialization logic.",
 "oneOf": [
   {
     "type": "string",
     "enum": [
       "WasmUnknownError",
       "_EVMError"
     ]
   },
   {
     "description": "Wasm compilation error",
     "type": "object",
     "required": [
       "CompilationError"
     ],
     "properties": {
       "CompilationError": {
         "$ref": "#/components/schemas/CompilationError"
       }
     },
     "additionalProperties": false
   },
   {
     "description": "Wasm binary env link error\n\n Note: this is only to deserialize old data, use execution error for new data",
     "type": "object",
     "required": [
       "LinkError"
     ],
     "properties": {
       "LinkError": {
         "type": "object",
         "required": [
           "msg"
         ],
         "properties": {
           "msg": {
             "type": "string"
           }
         }
       }
     },
     "additionalProperties": false
   },
   {
     "description": "Import/export resolve error",
     "type": "object",
     "required": [
       "MethodResolveError"
     ],
     "properties": {
       "MethodResolveError": {
         "$ref": "#/components/schemas/MethodResolveError"
       }
     },
     "additionalProperties": false
   },
   {
     "description": "A trap happened during execution of a binary\n\n Note: this is only to deserialize old data, use execution error for new data",
     "type": "object",
     "required": [
       "WasmTrap"
     ],
     "properties": {
       "WasmTrap": {
         "$ref": "#/components/schemas/WasmTrap"
       }
     },
     "additionalProperties": false
   },
   {
     "description": "Note: this is only to deserialize old data, use execution error for new data",
     "type": "object",
     "required": [
       "HostError"
     ],
     "properties": {
       "HostError": {
         "$ref": "#/components/schemas/HostError"
       }
     },
     "additionalProperties": false
   },
   {
     "type": "object",
     "required": [
       "ExecutionError"
     ],
     "properties": {
       "ExecutionError": {
         "type": "string"
       }
     },
     "additionalProperties": false
   }
 ]
}Variants§
WasmUnknownError
EvmError
CompilationError(CompilationError)
Wasm compilation error
LinkError
Wasm binary env link error
Note: this is only to deserialize old data, use execution error for new data
MethodResolveError(MethodResolveError)
Import/export resolve error
WasmTrap(WasmTrap)
A trap happened during execution of a binary
Note: this is only to deserialize old data, use execution error for new data
HostError(HostError)
Note: this is only to deserialize old data, use execution error for new data
ExecutionError(String)
Trait Implementations§
Source§impl Clone for FunctionCallError
 
impl Clone for FunctionCallError
Source§fn clone(&self) -> FunctionCallError
 
fn clone(&self) -> FunctionCallError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
 
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for FunctionCallError
 
impl Debug for FunctionCallError
Source§impl<'de> Deserialize<'de> for FunctionCallError
 
impl<'de> Deserialize<'de> for FunctionCallError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&FunctionCallError> for FunctionCallError
 
impl From<&FunctionCallError> for FunctionCallError
Source§fn from(value: &FunctionCallError) -> Self
 
fn from(value: &FunctionCallError) -> Self
Converts to this type from the input type.
Source§impl From<CompilationError> for FunctionCallError
 
impl From<CompilationError> for FunctionCallError
Source§fn from(value: CompilationError) -> Self
 
fn from(value: CompilationError) -> Self
Converts to this type from the input type.
Source§impl From<FunctionCallError> for ActionErrorKind
 
impl From<FunctionCallError> for ActionErrorKind
Source§fn from(value: FunctionCallError) -> Self
 
fn from(value: FunctionCallError) -> Self
Converts to this type from the input type.
Source§impl From<HostError> for FunctionCallError
 
impl From<HostError> for FunctionCallError
Source§impl From<MethodResolveError> for FunctionCallError
 
impl From<MethodResolveError> for FunctionCallError
Source§fn from(value: MethodResolveError) -> Self
 
fn from(value: MethodResolveError) -> Self
Converts to this type from the input type.
Source§impl From<WasmTrap> for FunctionCallError
 
impl From<WasmTrap> for FunctionCallError
Auto Trait Implementations§
impl Freeze for FunctionCallError
impl RefUnwindSafe for FunctionCallError
impl Send for FunctionCallError
impl Sync for FunctionCallError
impl Unpin for FunctionCallError
impl UnwindSafe for FunctionCallError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more