-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7db96b
commit ecbf16c
Showing
7 changed files
with
142 additions
and
78 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use crate::composition::supergraph::config::resolver::{ | ||
LoadRemoteSubgraphsError, LoadSupergraphConfigError, ResolveSupergraphConfigError, | ||
}; | ||
use anyhow::Error; | ||
use std::path::PathBuf; | ||
|
||
#[derive(thiserror::Error, Debug)] | ||
pub enum SupergraphConfigLazyResolutionError { | ||
#[error("Could not instantiate Studio Client")] | ||
StudioClientInitialisationFailed(#[from] Error), | ||
#[error("Could not load remote subgraphs")] | ||
LoadRemoteSubgraphsFailed(#[from] LoadRemoteSubgraphsError), | ||
#[error("Could not load supergraph config from local file")] | ||
LoadLocalSupergraphConfigFailed(#[from] LoadSupergraphConfigError), | ||
#[error("Could not resolve local and remote elements into complete SupergraphConfig")] | ||
ResolveSupergraphConfigFailed(#[from] ResolveSupergraphConfigError), | ||
#[error("Path `{0}` does not point to a file")] | ||
PathDoesNotPointToAFile(PathBuf), | ||
} | ||
#[derive(thiserror::Error, Debug)] | ||
pub enum CompositionError {} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters