Enum switchboard_solana::error::SbError
pub enum SbError {
Show 73 variants
AnyhowError(Arc<AnyhowWrapper>),
Generic,
Message(&'static str),
CustomMessage(String),
CustomError {
message: String,
source: Arc<dyn Error + Sync + Send>,
},
Unexpected,
EnvVariableMissing(String),
InvalidKeypairFile,
KeyParseError,
CheckSizeError,
IoError(Arc<dyn Error + Sync + Send>),
SgxError,
SgxWriteError,
NetworkError,
QuoteParseError,
InvalidQuoteError,
QvnError(Arc<String>),
DockerError,
DockerFetchError,
FunctionImageTooBigError,
ContainerErrorMessage(String),
ContainerError(Arc<dyn Error + Sync + Send>),
ContainerStartError(Arc<dyn Error + Sync + Send>),
ContainerCreateError(Arc<dyn Error + Sync + Send>),
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 Error + Sync + Send>),
SolanaPayerMismatch(String, String),
SolanaPayerSignerMissing(String),
SolanaMissingSigner(String),
SolanaSignError(Arc<dyn Error + Sync + Send>, String),
SolanaInstructionsEmpty,
SolanaInstructionOverflow,
FunctionResultIxMissingDiscriminator,
FunctionResultError(&'static str),
FunctionResultIxError(&'static str),
FunctionResultFailoverError(u8, Arc<dyn Error + Sync + Send>),
FunctionResultNonRetryableError(Arc<dyn Error + Sync + Send>),
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 Error + Sync + Send>)
SgxError
SgxWriteError
NetworkError
QuoteParseError
InvalidQuoteError
QvnError(Arc<String>)
DockerError
DockerFetchError
FunctionImageTooBigError
ContainerErrorMessage(String)
ContainerError(Arc<dyn Error + Sync + Send>)
ContainerStartError(Arc<dyn Error + Sync + Send>)
ContainerCreateError(Arc<dyn Error + Sync + Send>)
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 Error + Sync + Send>)
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 Error + Sync + Send>, String)
SolanaInstructionsEmpty
SolanaInstructionOverflow
FunctionResultIxMissingDiscriminator
FunctionResultError(&'static str)
FunctionResultIxError(&'static str)
FunctionResultFailoverError(u8, Arc<dyn Error + Sync + Send>)
FunctionResultNonRetryableError(Arc<dyn Error + Sync + Send>)
AccountNotFound
HttpError(String, u32, u32)
Trait Implementations§
§impl Error for SbError
impl Error for SbError
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
§impl From<FromHexError> for SbError
impl From<FromHexError> for SbError
§fn from(error: FromHexError) -> SbError
fn from(error: FromHexError) -> SbError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SbError
impl Send for SbError
impl Sync for SbError
impl Unpin for SbError
impl !UnwindSafe for SbError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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