pub enum OracleError {
Show 29 variants
MissingParameter {
param: String,
},
InvalidParameter {
param: String,
reason: String,
},
DecodeError {
param: String,
encoding: String,
reason: String,
},
InvalidUrl {
reason: String,
},
UrlValidationError {
reason: String,
},
HttpRequestFailed {
message: String,
reason: Option<String>,
},
HttpStatusError {
status: u16,
reason: String,
},
ResponseTooLarge {
max_size: usize,
},
RequestBodyTooLarge {
size: usize,
max_size: usize,
},
FilterError {
reason: String,
},
Timeout {
duration_ms: u64,
},
RetriesExhausted {
attempts: u8,
reason: String,
},
JsonError {
reason: String,
},
NoDataSources,
SecretDecryptionFailed {
reason: String,
},
InvalidSecretPayload {
reason: String,
},
SecretKeyGenerationFailed {
reason: String,
},
SecretEncryptionFailed {
reason: String,
},
OracleOutputSizeTooSmall {
provided: usize,
},
InvalidOracleDutyInput(String),
ConnectionError {
reason: String,
},
WebSocketError {
message: String,
},
DkgValidationError {
reason: String,
},
DkgCryptoError {
operation: String,
reason: String,
},
DkgNotImplemented {
handler: String,
},
DkgGenesisError {
reason: String,
},
DkgInstallShareError {
reason: String,
},
DkgDecryptionError {
dealer_index: u16,
reason: String,
},
DkgVerificationError {
dealer_index: u16,
},
}Expand description
Represents errors that can occur during oracle processing.
Variants§
MissingParameter
InvalidParameter
DecodeError
InvalidUrl
UrlValidationError
HttpRequestFailed
HttpStatusError
ResponseTooLarge
RequestBodyTooLarge
FilterError
Timeout
RetriesExhausted
JsonError
NoDataSources
SecretDecryptionFailed
InvalidSecretPayload
SecretKeyGenerationFailed
SecretEncryptionFailed
OracleOutputSizeTooSmall
InvalidOracleDutyInput(String)
ConnectionError
WebSocketError
DkgValidationError
DkgCryptoError
DkgNotImplemented
DkgGenesisError
DkgDecryptionError
DkgVerificationError
Trait Implementations§
Source§impl BorshDeserialize for OracleError
impl BorshDeserialize for OracleError
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for OracleError
impl BorshSerialize for OracleError
Source§impl Clone for OracleError
impl Clone for OracleError
Source§fn clone(&self) -> OracleError
fn clone(&self) -> OracleError
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 OracleError
impl Debug for OracleError
Source§impl<'de> Deserialize<'de> for OracleError
impl<'de> Deserialize<'de> for OracleError
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 OracleError
impl Display for OracleError
Source§impl EnumExt for OracleError
impl EnumExt for OracleError
Source§impl Error for OracleError
impl Error for OracleError
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<HeadersError> for OracleError
impl From<HeadersError> for OracleError
Source§fn from(err: HeadersError) -> Self
fn from(err: HeadersError) -> Self
Converts to this type from the input type.
Source§impl From<OracleError> for OracleOutput
impl From<OracleError> for OracleOutput
Source§fn from(error: OracleError) -> Self
fn from(error: OracleError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OracleError
impl PartialEq for OracleError
Source§impl Serialize for OracleError
impl Serialize for OracleError
impl Eq for OracleError
impl StructuralPartialEq for OracleError
Auto Trait Implementations§
impl Freeze for OracleError
impl RefUnwindSafe for OracleError
impl Send for OracleError
impl Sync for OracleError
impl Unpin for OracleError
impl UnsafeUnpin for OracleError
impl UnwindSafe for OracleError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.