Enum linera_chain::ChainError
source · pub enum ChainError {
Show 31 variants
CryptoError(CryptoError),
ArithmeticError(ArithmeticError),
ViewError(ViewError),
ExecutionError(ExecutionError, ChainExecutionContext),
InactiveChain(ChainId),
MissingCrossChainUpdate {
chain_id: ChainId,
origin: Box<Origin>,
height: BlockHeight,
},
UnexpectedMessage {
chain_id: ChainId,
origin: Box<Origin>,
event: Event,
previous_event: Event,
},
IncorrectMessageOrder {
chain_id: ChainId,
origin: Box<Origin>,
event: Event,
next_height: BlockHeight,
next_index: u32,
},
CannotRejectMessage {
chain_id: ChainId,
origin: Box<Origin>,
event: Event,
},
CannotSkipMessage {
chain_id: ChainId,
origin: Box<Origin>,
event: Event,
},
IncorrectEventTimestamp {
chain_id: ChainId,
message_timestamp: Timestamp,
block_timestamp: Timestamp,
},
InvalidSigner,
UnexpectedBlockHeight {
expected_block_height: BlockHeight,
found_block_height: BlockHeight,
},
UnexpectedPreviousBlockHash,
InvalidBlockHeight,
InvalidBlockTimestamp,
PreviousBlockMustBeConfirmedFirst,
InvalidBlockProposal,
InsufficientRound(Round),
InsufficientRoundStrict(Round),
WrongRound(Round),
HasLockedBlock(BlockHeight, Round),
MissingEarlierBlocks {
current_block_height: BlockHeight,
},
CertificateValidatorReuse,
CertificateRequiresQuorum,
CertificateSignatureVerificationFailed {
error: String,
},
InternalError(String),
InsufficientBalance,
OwnerWeightError(WeightedError),
ClosedChain,
AuthorizedApplications(Vec<ApplicationId>),
}
Variants§
CryptoError(CryptoError)
ArithmeticError(ArithmeticError)
ViewError(ViewError)
ExecutionError(ExecutionError, ChainExecutionContext)
InactiveChain(ChainId)
MissingCrossChainUpdate
UnexpectedMessage
IncorrectMessageOrder
CannotRejectMessage
CannotSkipMessage
IncorrectEventTimestamp
InvalidSigner
UnexpectedBlockHeight
UnexpectedPreviousBlockHash
InvalidBlockHeight
InvalidBlockTimestamp
PreviousBlockMustBeConfirmedFirst
InvalidBlockProposal
InsufficientRound(Round)
InsufficientRoundStrict(Round)
WrongRound(Round)
HasLockedBlock(BlockHeight, Round)
MissingEarlierBlocks
Fields
§
current_block_height: BlockHeight
CertificateValidatorReuse
CertificateRequiresQuorum
CertificateSignatureVerificationFailed
InternalError(String)
InsufficientBalance
OwnerWeightError(WeightedError)
ClosedChain
AuthorizedApplications(Vec<ApplicationId>)
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)>
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<ArithmeticError> for ChainError
impl From<ArithmeticError> for ChainError
source§fn from(source: ArithmeticError) -> Self
fn from(source: ArithmeticError) -> Self
Converts to this type from the input type.
source§impl From<CryptoError> for ChainError
impl From<CryptoError> for ChainError
source§fn from(source: CryptoError) -> Self
fn from(source: CryptoError) -> Self
Converts to this type from the input type.
source§impl From<ViewError> for ChainError
impl From<ViewError> for ChainError
source§impl From<WeightedError> for ChainError
impl From<WeightedError> for ChainError
source§fn from(source: WeightedError) -> Self
fn from(source: WeightedError) -> 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<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