pub enum PythContractError {
PermissionDenied,
PriceFeedNotFound,
InvalidUpdateEmitter,
InvalidUpdatePayload,
DataSourceDoesNotExists,
DataSourceAlreadyExists,
InvalidGovernanceEmitter,
InvalidGovernancePayload,
OldGovernanceMessage,
InvalidGovernanceSourceIndex,
InsufficientFee,
InvalidFeeDenom {
denom: String,
},
}
Variants§
PermissionDenied
Message sender not permitted to execute this operation
PriceFeedNotFound
Wrapped asset not found in the registry
InvalidUpdateEmitter
Message emitter is not an accepted data source.
InvalidUpdatePayload
Message payload cannot be deserialized to a batch attestation
DataSourceDoesNotExists
Data source does not exists error (on removing data source)
DataSourceAlreadyExists
Data source already exists error (on adding data source)
InvalidGovernanceEmitter
Message emitter is not an accepted source of governance instructions.
InvalidGovernancePayload
Message payload cannot be deserialized as a valid governance instruction.
OldGovernanceMessage
The sequence number of the governance message is too old.
InvalidGovernanceSourceIndex
The governance source index it not valid.
InsufficientFee
The message did not include a sufficient fee.
InvalidFeeDenom
The message did not include a sufficient fee.
Trait Implementations§
Source§impl Debug for PythContractError
impl Debug for PythContractError
Source§impl Display for PythContractError
impl Display for PythContractError
Source§impl Error for PythContractError
impl Error for PythContractError
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<PythContractError> for StdError
impl From<PythContractError> for StdError
Source§fn from(other: PythContractError) -> StdError
fn from(other: PythContractError) -> StdError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PythContractError
impl RefUnwindSafe for PythContractError
impl Send for PythContractError
impl Sync for PythContractError
impl Unpin for PythContractError
impl UnwindSafe for PythContractError
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