pub enum SbError {
Show 75 variants
AnyhowError(Arc<AnyhowWrapper>),
Generic,
Message(&'static str),
CustomMessage(String),
CustomError {
message: String,
source: Arc<dyn StdError + Send + Sync + 'static>,
},
Unexpected,
EnvVariableMissing(String),
InvalidKeypairFile,
KeyParseError,
CheckSizeError,
IoError(Arc<dyn StdError + Send + Sync + 'static>),
SgxError,
SgxWriteError,
AmdSevError,
AmdRandomnessError,
NetworkError,
QuoteParseError,
InvalidQuoteError,
QvnError(Arc<String>),
DockerError,
DockerFetchError,
FunctionImageTooBigError,
ContainerErrorMessage(String),
ContainerError(Arc<dyn StdError + Send + Sync + 'static>),
ContainerStartError(Arc<dyn StdError + Send + Sync + 'static>),
ContainerCreateError(Arc<dyn StdError + Send + Sync + 'static>),
ContainerNeedsUpdate,
ContainerResultParseError,
AttachError,
ContainerTimeout,
ContainerActive,
ContainerBackoff(u64),
FunctionErrorCountExceeded(u32),
FunctionResultParseError,
IllegalFunctionOutput,
FunctionVerifyFailure,
FunctionResultIllegalAccount,
FunctionResultAccountsMismatch,
FunctionResultInvalidData,
FunctionResultInvalidPid,
FunctionResultEmptyInstructions,
TxFailure,
TxCompileErr,
TxDeserializationError,
QvnTxSendFailure,
InvalidInstructionError,
InvalidChain,
AnchorParse,
AnchorParseError,
EvmError,
IpfsParseError,
IpfsNetworkError,
HeartbeatRoutineFailure,
EventListenerRoutineFailure,
DecryptError,
ParseError,
MrEnclaveMismatch,
FunctionResultIxIncorrectTargetChain,
InvalidSignature,
SolanaFetchError(String),
SolanaBlockhashError,
SolanaBlockhashFetchError(Arc<dyn StdError + Send + Sync + 'static>),
SolanaPayerMismatch(String, String),
SolanaPayerSignerMissing(String),
SolanaMissingSigner(String),
SolanaSignError(Arc<dyn StdError + Send + Sync + 'static>, String),
SolanaInstructionsEmpty,
SolanaInstructionOverflow,
FunctionResultIxMissingDiscriminator,
FunctionResultError(&'static str),
FunctionResultIxError(&'static str),
FunctionResultFailoverError(u8, Arc<dyn StdError + Send + Sync + 'static>),
FunctionResultNonRetryableError(Arc<dyn StdError + Send + Sync + 'static>),
AccountNotFound,
HttpError(String, u32, u32),
}
Expand description
Switchboard Functions error suite
Variants§
AnyhowError(Arc<AnyhowWrapper>)
Generic
Message(&'static str)
CustomMessage(String)
CustomError
Unexpected
EnvVariableMissing(String)
InvalidKeypairFile
KeyParseError
CheckSizeError
IoError(Arc<dyn StdError + Send + Sync + 'static>)
SgxError
SgxWriteError
AmdSevError
AmdRandomnessError
NetworkError
QuoteParseError
InvalidQuoteError
QvnError(Arc<String>)
DockerError
DockerFetchError
FunctionImageTooBigError
ContainerErrorMessage(String)
ContainerError(Arc<dyn StdError + Send + Sync + 'static>)
ContainerStartError(Arc<dyn StdError + Send + Sync + 'static>)
ContainerCreateError(Arc<dyn StdError + Send + Sync + 'static>)
ContainerNeedsUpdate
ContainerResultParseError
AttachError
ContainerTimeout
ContainerActive
ContainerBackoff(u64)
FunctionErrorCountExceeded(u32)
FunctionResultParseError
IllegalFunctionOutput
FunctionVerifyFailure
FunctionResultIllegalAccount
FunctionResultAccountsMismatch
FunctionResultInvalidData
FunctionResultInvalidPid
FunctionResultEmptyInstructions
TxFailure
TxCompileErr
TxDeserializationError
QvnTxSendFailure
InvalidInstructionError
InvalidChain
AnchorParse
AnchorParseError
EvmError
IpfsParseError
IpfsNetworkError
HeartbeatRoutineFailure
EventListenerRoutineFailure
DecryptError
ParseError
MrEnclaveMismatch
FunctionResultIxIncorrectTargetChain
InvalidSignature
SolanaFetchError(String)
Failed to fetch a network resource
SolanaBlockhashError
Failed to fetch a blockhash from the cluster
SolanaBlockhashFetchError(Arc<dyn StdError + Send + Sync + 'static>)
Failed to fetch a blockhash from the cluster
SolanaPayerMismatch(String, String)
THe provided payer does not match the payer of the transaction Expected vs actual
SolanaPayerSignerMissing(String)
SolanaMissingSigner(String)
A required Solana signer is missing
SolanaSignError(Arc<dyn StdError + Send + Sync + 'static>, String)
SolanaInstructionsEmpty
SolanaInstructionOverflow
FunctionResultIxMissingDiscriminator
FunctionResultError(&'static str)
FunctionResultIxError(&'static str)
FunctionResultFailoverError(u8, Arc<dyn StdError + Send + Sync + 'static>)
FunctionResultNonRetryableError(Arc<dyn StdError + Send + Sync + 'static>)
AccountNotFound
HttpError(String, u32, u32)
Trait Implementations§
Source§impl Error for SbError
impl Error for SbError
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<Error> for SbError
impl From<Error> for SbError
Source§fn from(error: SerdeJsonError) -> Self
fn from(error: SerdeJsonError) -> Self
Converts to this type from the input type.
Source§impl From<FromHexError> for SbError
impl From<FromHexError> for SbError
Source§fn from(error: FromHexError) -> Self
fn from(error: FromHexError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SbError
impl !RefUnwindSafe for SbError
impl Send for SbError
impl Sync for SbError
impl Unpin for SbError
impl !UnwindSafe for SbError
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