agp_datapath/tables/
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, PartialEq)]
7pub enum SubscriptionTableError {
8    #[error("no matching found for {0}")]
9    NoMatch(String),
10    #[error("subscription not fund")]
11    SubscriptionNotFound,
12    #[error("agent id not fund")]
13    AgentIdNotFound,
14    #[error("connection id not fund")]
15    ConnectionIdNotFound,
16}