blob: ae6c4b4e194be480eea54c836d81b8a7b33298b7 (
plain)
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
31
32
33
|
// SPDX-FileCopyrightText: 2021 HH Partners
//
// SPDX-License-Identifier: MIT
use std::io;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum SpdxError {
#[error("Error parsing the SPDX Expression.")]
Parse {
#[from]
source: spdx_expression::SpdxExpressionError,
},
#[error("Path {0} doesn't have an extension.")]
PathExtension(String),
#[error("Error with file I/O.")]
Io {
#[from]
source: io::Error,
},
#[error("Error while parsing date.")]
DateTimeParse {
#[from]
source: chrono::ParseError,
},
#[error("Error parsing tag-value: {0}")]
TagValueParse(String),
}
|