-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patherror.rs
More file actions
30 lines (21 loc) · 826 Bytes
/
error.rs
File metadata and controls
30 lines (21 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use thiserror::Error;
use crate::parsers::pyreport::chunks::ChunksFileParseError;
pub type Result<T, E = CodecovError> = std::result::Result<T, E>;
#[derive(Error, Debug)]
pub enum CodecovError {
#[error("sqlite failure: '{0}'")]
SqliteError(#[from] rusqlite::Error),
#[error("sqlite migration failure: '{0}'")]
SqliteMigrationError(#[from] rusqlite_migration::Error),
#[error("report builder error: '{0}'")]
ReportBuilderError(String),
#[error("parser error: '{0}'")]
Json(#[from] serde_json::Error),
#[error("io error: '{0}'")]
IOError(#[from] std::io::Error),
#[cfg(feature = "pyreport")]
#[error("failed to convert sqlite to pyreport: '{0}'")]
PyreportConversionError(String),
#[error(transparent)]
ChunksFileParseError(#[from] ChunksFileParseError),
}