neo_decompiler/error/
manifest.rs1use std::io;
2use std::str::Utf8Error;
3
4use thiserror::Error;
5
6#[derive(Debug, Error)]
8#[non_exhaustive]
9pub enum ManifestError {
10 #[error("failed to read manifest: {0}")]
12 Io(#[from] io::Error),
13
14 #[error("manifest size {size} exceeds maximum {max}")]
16 FileTooLarge {
17 size: u64,
19 max: u64,
21 },
22
23 #[error("manifest json parse error: {0}")]
25 Json(#[from] serde_json::Error),
26
27 #[error("manifest contains invalid utf-8: {source}")]
29 InvalidUtf8 {
30 #[source]
32 source: Utf8Error,
33 },
34
35 #[error("manifest validation error: {message}")]
37 Validation {
38 message: String,
40 },
41}