#[non_exhaustive]pub enum ManifestError {
Show 31 variants
VersionError(String),
AssetReference(Error),
AssetContainer(Error),
LiquidConfig(Error),
TypesNotFetched,
TypeNotFound(String),
NoFormat(Option<PathBuf>),
FileNotFound(String),
LoadError(String),
UnexpectedConfigurationKind(ConfigurationKind, ConfigurationKind),
UnexpectedComponentType(ComponentKind, ComponentKind),
YamlError(Option<PathBuf>, String, Option<Location>),
BadIpAddress(String),
InvalidRegex(String),
Invalid(Error),
InvalidOperationExpression(String),
Parser(Error),
TypeParser(ParserError),
VariantError(String, String),
Utf8,
InvalidUrl(String),
IdNotFound {
id: String,
ids: Vec<String>,
},
ConfigurationTemplate(String),
ConfigurationInvalid(Error),
TemplateStructure,
ContextBase,
UnrenderedConfiguration(String),
Reference(ReferenceError),
Builder(BuilderError),
InvalidPacketFlags,
InvalidReference,
}Expand description
Wick Manifest’s Errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
VersionError(String)
Invalid version found in the parsed manifest.
AssetReference(Error)
Error related to asset references.
AssetContainer(Error)
Error related to fetching asset references.
LiquidConfig(Error)
Error rendering liquid JSON configuration.
TypesNotFetched
Attempted to retrieve the types in a manifest before they’ve been fetched.
TypeNotFound(String)
Attempted to import a type that was not found in the manifest.
NoFormat(Option<PathBuf>)
No format version or kind found in the parsed manifest.
FileNotFound(String)
Manifest not found at the specified path.
LoadError(String)
Could not load file.
UnexpectedConfigurationKind(ConfigurationKind, ConfigurationKind)
Thrown when a specific type of configuration was expected but a different type was found.
UnexpectedComponentType(ComponentKind, ComponentKind)
Thrown when a specific type of component was expected but a different type was found.
YamlError(Option<PathBuf>, String, Option<Location>)
Error deserializing YAML manifest.
BadIpAddress(String)
IP address in manifest is invalid.
InvalidRegex(String)
Invalid regular expression.
Invalid(Error)
Invalid format of passed data. Check the error message for details.
InvalidOperationExpression(String)
Invalid operation expression. Must be in the form component_name::operation_name.
Parser(Error)
Parser error.
TypeParser(ParserError)
Type Parser error.
VariantError(String, String)
Error converting an enum to a specific variant.
Utf8
Error parsing YAML as a string.
InvalidUrl(String)
Invalid authority format
IdNotFound
Identifier not found.
ConfigurationTemplate(String)
Attempted to use configuration before it was renderable.
ConfigurationInvalid(Error)
Passed wick_packet::RuntimeConfig is invalid for the configuration required by this component.
TemplateStructure
Attempted to serialize a complex liquid_json::LiquidJson template into a string.
ContextBase
Attempted to create a template render context from a non-object value.
UnrenderedConfiguration(String)
Attempted to use configuration before it was rendered.
Reference(ReferenceError)
Error resolving reference.
Builder(BuilderError)
Error building a configuration
InvalidPacketFlags
Error converting configured Packet flags.
InvalidReference
Error when trying to use a component as a bound reference when it wasn’t bound.
Trait Implementations§
Source§impl Debug for ManifestError
impl Debug for ManifestError
Source§impl Display for ManifestError
impl Display for ManifestError
Source§impl Error for ManifestError
impl Error for ManifestError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<BuilderError> for ManifestError
impl From<BuilderError> for ManifestError
Source§fn from(source: BuilderError) -> Self
fn from(source: BuilderError) -> Self
Source§impl From<Error> for ManifestError
impl From<Error> for ManifestError
Source§impl From<Error> for ManifestError
impl From<Error> for ManifestError
Source§impl From<Error> for ManifestError
impl From<Error> for ManifestError
Source§impl From<Error> for ManifestError
impl From<Error> for ManifestError
Source§impl From<ParserError> for ManifestError
impl From<ParserError> for ManifestError
Source§impl From<ParserError> for ManifestError
impl From<ParserError> for ManifestError
Source§fn from(source: ParserError) -> Self
fn from(source: ParserError) -> Self
Source§impl From<ReferenceError> for ManifestError
impl From<ReferenceError> for ManifestError
Source§fn from(source: ReferenceError) -> Self
fn from(source: ReferenceError) -> Self
Auto Trait Implementations§
impl Freeze for ManifestError
impl !RefUnwindSafe for ManifestError
impl Send for ManifestError
impl Sync for ManifestError
impl Unpin for ManifestError
impl !UnwindSafe for ManifestError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more