Skip to main content

harmos_packaging/bundle/
error.rs

1/* ***
2 *
3 * Harmos
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * ***
8 */
9
10/* === Modules === */
11
12/* === Re-Exports === */
13
14/* === Imports === */
15
16// Standard Library Imports
17
18// Third Party Imports
19
20// Local Imports
21
22/* === Constants === */
23
24/* === Macros === */
25
26/* === Type Aliases === */
27
28/* === Structs === */
29
30/* === Enums === */
31
32#[derive(Debug, thiserror::Error)]
33pub enum Error {
34    #[error("invalid plugin bundle: {0}")]
35    Invalid(String),
36
37    #[error("plugin bundle exceeds {0}")]
38    Limit(&'static str),
39
40    #[error(transparent)]
41    Io(#[from] std::io::Error),
42
43    #[error(transparent)]
44    Json(#[from] serde_json::Error),
45}
46
47/* === Traits === */
48
49/* === Implementations === */
50
51/* === Public Functions === */
52
53/* === Private Functions === */
54
55/* === Tests === */