fuel_core_compression_service/
errors.rs1use fuel_core_storage::Error as StorageError;
2use thiserror::Error;
3
4#[derive(Error, Debug)]
6pub enum CompressionError {
7 #[error("failed to get l2 block: `{0}`")]
10 FailedToGetBlock(String),
11 #[error("failed to write compressed block to storage: `{0}`")]
14 FailedToWriteCompressedBlock(StorageError),
15 #[error("failed to write registrations to storage: `{0}`")]
17 FailedToWriteRegistrations(StorageError),
18 #[error("failed to get size of compressed block: `{0}`")]
20 FailedToGetCompressedBlockSize(StorageError),
21 #[error("failed to commit transaction: `{0}`")]
23 FailedToCommitTransaction(StorageError),
24 #[error("failed to get latest height from storage: `{0}`")]
26 FailedToGetLatestHeight(StorageError),
27 #[error("failed to get configuration: `{0}`")]
30 FailedToGetConfig(String),
31 #[error("failed to create service: `{0}`")]
34 FailedToCreateService(String),
35 #[error("failed to compress block: `{0}`")]
37 FailedToCompressBlock(anyhow::Error),
38 #[error("failed to compute registry root: `{0}`")]
40 FailedToComputeRegistryRoot(StorageError),
41 #[error("failed to handle new block: `{0}`")]
43 FailedToHandleNewBlock(String),
44 #[error("failed to get sync status")]
46 FailedToGetSyncStatus,
47}