mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-05-22 01:30:00 +00:00
add new type of error, since we have a new interaction
This commit is contained in:
parent
0113925b92
commit
bbb84cd849
@ -40,6 +40,8 @@ impl From<SequencerRpcError> for SequencerClientError {
|
|||||||
pub enum ExecutionFailureKind {
|
pub enum ExecutionFailureKind {
|
||||||
#[error("Failed to write into builder err: {0:?}")]
|
#[error("Failed to write into builder err: {0:?}")]
|
||||||
WriteError(anyhow::Error),
|
WriteError(anyhow::Error),
|
||||||
|
#[error("Failed to interact with a db err: {0:?}")]
|
||||||
|
DBError(anyhow::Error),
|
||||||
#[error("Failed to build builder err: {0:?}")]
|
#[error("Failed to build builder err: {0:?}")]
|
||||||
BuilderError(anyhow::Error),
|
BuilderError(anyhow::Error),
|
||||||
#[error("Failed prove execution err: {0:?}")]
|
#[error("Failed prove execution err: {0:?}")]
|
||||||
@ -70,4 +72,8 @@ impl ExecutionFailureKind {
|
|||||||
pub fn prove_error(err: anyhow::Error) -> Self {
|
pub fn prove_error(err: anyhow::Error) -> Self {
|
||||||
Self::ProveError(err)
|
Self::ProveError(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn db_error(err: anyhow::Error) -> Self {
|
||||||
|
Self::DBError(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user