pub enum ChainError {
Show 18 variants
SolanaRpc(Error),
TransactionFailure(OutcomeError),
ConversionError(&'static str),
DeclareBlob(OutcomeError),
InsertChunks(OutcomeError),
FinalizeBlob(OutcomeError),
DiscardBlob(OutcomeError),
CompoundUpload(OutcomeError),
InitializeBlober(OutcomeError),
CloseBlober(OutcomeError),
MissingBloberNamespace,
AccountExists(String),
AccountDoesNotExist(String),
InsufficientBalance(u64, u64),
CouldNotCalculateCost,
ConfigureCheckpoint(OutcomeError),
ProofBloberMismatch(Pubkey, Pubkey),
CheckpointNotUpToDate,
}
Expand description
An error that can occur when uploading a blob to a blober account.
Variants§
SolanaRpc(Error)
Failed to query Solana RPC: {0}
TransactionFailure(OutcomeError)
Failed when sending transactions. Transaction errors:\n{}
ConversionError(&'static str)
Fee Strategy conversion failure: {0}
DeclareBlob(OutcomeError)
Failed to declare blob: {0}
InsertChunks(OutcomeError)
Failed to insert chunks: {0}
FinalizeBlob(OutcomeError)
Failed to finalize blob: {0}
DiscardBlob(OutcomeError)
Failed to discard blob: {0}
CompoundUpload(OutcomeError)
Failed to compound upload: {0}
InitializeBlober(OutcomeError)
Failed to initialize blober: {0}
CloseBlober(OutcomeError)
Failed to close blober: {0}
MissingBloberNamespace
Missing blober namespace
AccountExists(String)
Account already exists: {0}
AccountDoesNotExist(String)
Account does not exist: {0}
InsufficientBalance(u64, u64)
Payer has insufficient balance to pay for the transaction: required {0} lamports, available {1} lamports
CouldNotCalculateCost
Could not calculate cost
ConfigureCheckpoint(OutcomeError)
Failed to configure checkpoint: {0}
ProofBloberMismatch(Pubkey, Pubkey)
Provided proof commitment does not match the blober’s address
CheckpointNotUpToDate
Trait Implementations§
Source§impl Debug for ChainError
impl Debug for ChainError
Source§impl Display for ChainError
impl Display for ChainError
Source§impl Error for ChainError
impl Error for ChainError
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<ChainError> for DataAnchorClientError
impl From<ChainError> for DataAnchorClientError
Source§fn from(source: ChainError) -> Self
fn from(source: ChainError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ChainError
impl From<Error> for ChainError
Source§impl From<OutcomeError> for ChainError
impl From<OutcomeError> for ChainError
Source§fn from(source: OutcomeError) -> Self
fn from(source: OutcomeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChainError
impl !RefUnwindSafe for ChainError
impl Send for ChainError
impl Sync for ChainError
impl Unpin for ChainError
impl !UnwindSafe for ChainError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more