tensogram_szip/error.rs
1// (C) Copyright 2026- ECMWF and individual contributors.
2//
3// This software is licensed under the terms of the Apache Licence Version 2.0
4// which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
5// In applying this licence, ECMWF does not waive the privileges and immunities
6// granted to it by virtue of its status as an intergovernmental organisation nor
7// does it submit to any jurisdiction.
8
9//! Error types for the pure-Rust AEC/SZIP codec.
10
11use thiserror::Error;
12
13#[derive(Debug, Error)]
14pub enum AecError {
15 #[error("configuration error: {0}")]
16 Config(String),
17 #[error("data error: {0}")]
18 Data(String),
19 #[error("buffer too small: {0}")]
20 Buffer(String),
21}