mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
17 lines
700 B
Rust
17 lines
700 B
Rust
use euclid::{dssa::types::AnalysisErrorType, frontend::dir};
|
|
|
|
#[derive(Debug, thiserror::Error, serde::Serialize)]
|
|
#[serde(tag = "type", content = "info", rename_all = "snake_case")]
|
|
pub enum KgraphError {
|
|
#[error("Invalid connector name encountered: '{0}'")]
|
|
InvalidConnectorName(String),
|
|
#[error("Error in domain creation")]
|
|
DomainCreationError,
|
|
#[error("There was an error constructing the graph: {0}")]
|
|
GraphConstructionError(hyperswitch_constraint_graph::GraphError<dir::DirValue>),
|
|
#[error("There was an error constructing the context")]
|
|
ContextConstructionError(AnalysisErrorType),
|
|
#[error("there was an unprecedented indexing error")]
|
|
IndexingError,
|
|
}
|