agp_controller/errors.rs
1// Copyright AGNTCY Contributors (https://github.com/agntcy)
2// SPDX-License-Identifier: Apache-2.0
3
4use thiserror::Error;
5
6#[derive(Error, Debug)]
7pub enum ControllerError {
8 #[error("configuration error {0}")]
9 ConfigError(String),
10 #[error("connection error: {0}")]
11 ConnectionError(String),
12 #[error("datapath error: {0}")]
13 DatapathError(String),
14}