orchestra_toolkit/avial_error.rs
1/* Copyright 2024-2025 LEDR Technologies Inc.
2* This file is part of the Orchestra library, which helps developer use our Orchestra technology which is based on AvesTerra, owned and developped by Georgetown University, under license agreement with LEDR Technologies Inc.
3*
4* The Orchestra library is a free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
5*
6* The Orchestra library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
7*
8* You should have received a copy of the GNU Lesser General Public License along with the Orchestra library. If not, see <https://www.gnu.org/licenses/>.
9*
10* If you have any questions, feedback or issues about the Orchestra library, you can contact us at support@ledr.io.
11*/
12
13use thiserror::Error;
14
15use crate::Error;
16use serde::{Deserialize, Serialize};
17
18#[derive(Error, Debug, Clone, Serialize, Deserialize, PartialEq)]
19#[serde(rename_all = "UPPERCASE")]
20#[error("{error:?} error: {message}")]
21pub struct AvialError {
22 pub error: Error,
23 pub message: String,
24}