Error

Type Alias Error 

Source
pub type Error = ManifestError;
Expand description

The crate’s error type.

Aliased Type§

pub enum Error {
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(ParserError), 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,
}

Variants§

§

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(ParserError)

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.

Fields

§id: String

The lookup id.

§ids: Vec<String>

The ids that exist in the lookup scope

§

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.