Type Alias wick_config::Error

source ·
pub type Error = ManifestError;
Expand description

The crate’s error type.

Aliased Type§

enum Error {
Show 30 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, Global>, }, ConfigurationTemplate(String), ConfigurationInvalid(Error), TemplateStructure, ContextBase, UnrenderedConfiguration(String), Reference(ReferenceError), Builder(BuilderError), InvalidPacketFlags,
}

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

Fields

§id: String

The lookup id.

§ids: Vec<String, Global>

The ids that exist in the lookup scope

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.

Trait Implementations§

source§

impl Debug for ManifestError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for ManifestError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for ManifestError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<BuilderError> for ManifestError

source§

fn from(source: BuilderError) -> Self

Converts to this type from the input type.
source§

impl From<Error> for ManifestError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for ManifestError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for ManifestError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for ManifestError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<ParserError> for ManifestError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<ParserError> for ManifestError

source§

fn from(source: ParserError) -> Self

Converts to this type from the input type.
source§

impl From<ReferenceError> for ManifestError

source§

fn from(source: ReferenceError) -> Self

Converts to this type from the input type.