pub enum RpcCallFunctionError {
UnknownBlock {
block_reference: BlockReference,
},
InvalidAccount {
block_hash: CryptoHash,
block_height: u64,
requested_account_id: AccountId,
},
UnknownAccount {
block_hash: CryptoHash,
block_height: u64,
requested_account_id: AccountId,
},
NoContractCode {
block_hash: CryptoHash,
block_height: u64,
contract_account_id: AccountId,
},
ContractExecutionError {
block_hash: CryptoHash,
block_height: u64,
vm_error: FunctionCallError,
},
InternalError {
error_message: String,
},
}Expand description
RpcCallFunctionError
JSON schema
{
"oneOf": [
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"block_reference"
],
"properties": {
"block_reference": {
"$ref": "#/components/schemas/BlockReference"
}
}
},
"name": {
"type": "string",
"enum": [
"UNKNOWN_BLOCK"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"block_hash",
"block_height",
"requested_account_id"
],
"properties": {
"block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"requested_account_id": {
"$ref": "#/components/schemas/AccountId"
}
}
},
"name": {
"type": "string",
"enum": [
"INVALID_ACCOUNT"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"block_hash",
"block_height",
"requested_account_id"
],
"properties": {
"block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"requested_account_id": {
"$ref": "#/components/schemas/AccountId"
}
}
},
"name": {
"type": "string",
"enum": [
"UNKNOWN_ACCOUNT"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"block_hash",
"block_height",
"contract_account_id"
],
"properties": {
"block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"contract_account_id": {
"$ref": "#/components/schemas/AccountId"
}
}
},
"name": {
"type": "string",
"enum": [
"NO_CONTRACT_CODE"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"block_hash",
"block_height",
"vm_error"
],
"properties": {
"block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"vm_error": {
"$ref": "#/components/schemas/FunctionCallError"
}
}
},
"name": {
"type": "string",
"enum": [
"CONTRACT_EXECUTION_ERROR"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"error_message"
],
"properties": {
"error_message": {
"type": "string"
}
}
},
"name": {
"type": "string",
"enum": [
"INTERNAL_ERROR"
]
}
}
}
]
}Variants§
UnknownBlock
Fields
§
block_reference: BlockReferenceInvalidAccount
UnknownAccount
NoContractCode
ContractExecutionError
InternalError
Trait Implementations§
Source§impl Clone for RpcCallFunctionError
impl Clone for RpcCallFunctionError
Source§fn clone(&self) -> RpcCallFunctionError
fn clone(&self) -> RpcCallFunctionError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RpcCallFunctionError
impl Debug for RpcCallFunctionError
Source§impl<'de> Deserialize<'de> for RpcCallFunctionError
impl<'de> Deserialize<'de> for RpcCallFunctionError
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 Display for RpcCallFunctionError
impl Display for RpcCallFunctionError
Source§impl Error for RpcCallFunctionError
impl Error for RpcCallFunctionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<&RpcCallFunctionError> for RpcCallFunctionError
impl From<&RpcCallFunctionError> for RpcCallFunctionError
Source§fn from(value: &RpcCallFunctionError) -> Self
fn from(value: &RpcCallFunctionError) -> Self
Converts to this type from the input type.
Source§impl From<RpcCallFunctionError> for ErrorWrapperForRpcCallFunctionError
impl From<RpcCallFunctionError> for ErrorWrapperForRpcCallFunctionError
Source§fn from(value: RpcCallFunctionError) -> Self
fn from(value: RpcCallFunctionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcCallFunctionError
impl RefUnwindSafe for RpcCallFunctionError
impl Send for RpcCallFunctionError
impl Sync for RpcCallFunctionError
impl Unpin for RpcCallFunctionError
impl UnsafeUnpin for RpcCallFunctionError
impl UnwindSafe for RpcCallFunctionError
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