Skip to main content

ConfigurationFileError

Enum ConfigurationFileError 

Source
pub enum ConfigurationFileError {
Show 62 variants AmbiguousConfigFiles { files: Vec<ConfigFileKind>, }, Unreadable { file: ConfigFileKind, source: Error, }, BrokenSymlink { file: ConfigFileKind, }, NotJson { file: ConfigFileKind, source: Error, }, InvalidJsonc { file: ConfigFileKind, source: JsoncError, }, InvalidToml { file: ConfigFileKind, message: String, }, InvalidYaml { file: ConfigFileKind, message: String, }, UnsupportedTomlDatetime { file: ConfigFileKind, key: KeyPath, }, ConflictingSchemaDirectives { file: ConfigFileKind, first_label: &'static str, first_url: String, second_label: &'static str, second_url: String, }, UnknownKey { file: ConfigFileKind, key: KeyPath, allowed: Vec<String>, }, UnknownCliBudgetMetric { source_set: SourceSet, metric: String, allowed: Vec<String>, }, WrongType { file: ConfigFileKind, key: KeyPath, expected: Vec<JsonType>, found: JsonType, }, OutOfRange { file: ConfigFileKind, key: KeyPath, minimum: f64, maximum: f64, found: f64, }, OutOfExclusiveMinRange { file: ConfigFileKind, key: KeyPath, exclusive_minimum: f64, maximum: f64, found: f64, }, NotOneOf { file: ConfigFileKind, key: KeyPath, allowed: Vec<String>, found: Box<Value>, }, InvalidGlob { file: ConfigFileKind, key: KeyPath, source: Error, }, MissingKey { file: ConfigFileKind, key: KeyPath, missing: String, }, UnknownLanguagePlugin { file: ConfigFileKind, key: KeyPath, name: String, known: Vec<String>, }, InvalidCliGlob { source_set: SourceSet, glob: String, source: Error, }, InvalidSha256 { file: ConfigFileKind, key: KeyPath, found: String, }, EmptyPluginField { file: ConfigFileKind, key: KeyPath, }, MissingPluginSource { file: ConfigFileKind, key: KeyPath, name: String, }, AmbiguousPluginSource { file: ConfigFileKind, key: KeyPath, name: String, }, NonHttpsPluginUrl { file: ConfigFileKind, key: KeyPath, name: String, url: String, }, NewerSchemaVersion { file: ConfigFileKind, config_version: String, binary_version: String, }, InvalidBoundaryZoneName { file: ConfigFileKind, key: KeyPath, name: String, }, EmptyBoundaryZonePatterns { file: ConfigFileKind, key: KeyPath, zone: String, }, UnknownBoundaryZone { file: ConfigFileKind, key: KeyPath, zone: String, known: Vec<String>, }, ConflictingBoundaryRule { file: ConfigFileKind, key: KeyPath, from: String, }, ConflictingExternalBoundaryRule { file: ConfigFileKind, key: KeyPath, from: String, }, MissingBoundaryRuleDirective { file: ConfigFileKind, key: KeyPath, from: String, }, ConflictingBoundaryDirectives { file: ConfigFileKind, key: KeyPath, from: String, }, ConflictingExternalBoundaryDirectives { file: ConfigFileKind, key: KeyPath, from: String, }, EmptyBoundaryExternalPattern { file: ConfigFileKind, key: KeyPath, }, EmptyDependencyIgnore { file: ConfigFileKind, key: KeyPath, }, EmptyCoverageReportPath { file: ConfigFileKind, key: KeyPath, }, AbsoluteCoverageReportPath { file: ConfigFileKind, key: KeyPath, path: String, }, ParentTraversalCoverageReportPath { file: ConfigFileKind, key: KeyPath, path: String, }, TestGapBudgetOutsideProduction { file: ConfigFileKind, key: KeyPath, }, CliTestGapBudgetOutsideProduction { source_set: SourceSet, }, TestGapRegressionLimit { file: ConfigFileKind, key: KeyPath, }, MetricBudgetOutsideProduction { file: ConfigFileKind, key: KeyPath, metric: Metric, }, CliMetricBudgetOutsideProduction { source_set: SourceSet, metric: Metric, }, FileSizeGateWithoutLimit { file: ConfigFileKind, key: KeyPath, }, CliFileSizeBudgetWithoutLimit, MetricRegressionLimitOutsideProduction { file: ConfigFileKind, key: KeyPath, metric: Metric, }, EmptyDialectLanguage { file: ConfigFileKind, key: KeyPath, }, EmptyDialectName { file: ConfigFileKind, key: KeyPath, }, EmptyDialectInclude { file: ConfigFileKind, key: KeyPath, language: String, dialect: String, }, EmptyDialectPattern { file: ConfigFileKind, key: KeyPath, }, UnknownDialectLanguage { file: ConfigFileKind, key: KeyPath, language: String, known: Vec<String>, }, UnknownDialect { file: ConfigFileKind, key: KeyPath, language: String, dialect: String, known: Vec<String>, }, EmptyHazardRuleName { file: ConfigFileKind, key: KeyPath, }, UnknownFrameworkProfile { file: ConfigFileKind, key: KeyPath, name: String, known: Vec<String>, }, EmptyFrameworkProfileName { file: ConfigFileKind, key: KeyPath, }, ConflictingFrameworkProfileRule { file: ConfigFileKind, key: KeyPath, }, EmptyFrameworkProfileObject { file: ConfigFileKind, key: KeyPath, }, InvalidPackageConfigKey { file: ConfigFileKind, key: KeyPath, package: String, }, DuplicatePackageConfigKey { file: ConfigFileKind, key: KeyPath, package: String, }, EmptyRatchetPath { file: ConfigFileKind, key: KeyPath, }, AbsoluteRatchetPath { file: ConfigFileKind, key: KeyPath, path: String, }, ParentTraversalRatchetPath { file: ConfigFileKind, key: KeyPath, path: String, },
}

Variants§

§

AmbiguousConfigFiles

Fields

§

Unreadable

Fields

§source: Error

Fields

§

NotJson

Fields

§source: Error
§

InvalidJsonc

Fields

§source: JsoncError
§

InvalidToml

Fields

§message: String
§

InvalidYaml

Fields

§message: String
§

UnsupportedTomlDatetime

Fields

§

ConflictingSchemaDirectives

Fields

§first_label: &'static str
§first_url: String
§second_label: &'static str
§second_url: String
§

UnknownKey

Fields

§allowed: Vec<String>
§

UnknownCliBudgetMetric

Fields

§source_set: SourceSet
§metric: String
§allowed: Vec<String>
§

WrongType

Fields

§expected: Vec<JsonType>
§found: JsonType
§

OutOfRange

Fields

§minimum: f64
§maximum: f64
§found: f64
§

OutOfExclusiveMinRange

Fields

§exclusive_minimum: f64
§maximum: f64
§found: f64
§

NotOneOf

Fields

§allowed: Vec<String>
§found: Box<Value>
§

InvalidGlob

Fields

§source: Error
§

MissingKey

Fields

§missing: String
§

UnknownLanguagePlugin

Fields

§name: String
§known: Vec<String>
§

InvalidCliGlob

Fields

§source_set: SourceSet
§glob: String
§source: Error
§

InvalidSha256

Fields

§found: String
§

EmptyPluginField

Fields

§

MissingPluginSource

Fields

§name: String
§

AmbiguousPluginSource

Fields

§name: String
§

NonHttpsPluginUrl

Fields

§name: String
§

NewerSchemaVersion

Fields

§config_version: String
§binary_version: String
§

InvalidBoundaryZoneName

Fields

§name: String
§

EmptyBoundaryZonePatterns

Fields

§zone: String
§

UnknownBoundaryZone

Fields

§zone: String
§known: Vec<String>
§

ConflictingBoundaryRule

Fields

§from: String
§

ConflictingExternalBoundaryRule

Fields

§from: String
§

MissingBoundaryRuleDirective

Fields

§from: String
§

ConflictingBoundaryDirectives

Fields

§from: String
§

ConflictingExternalBoundaryDirectives

Fields

§from: String
§

EmptyBoundaryExternalPattern

Fields

§

EmptyDependencyIgnore

Fields

§

EmptyCoverageReportPath

Fields

§

AbsoluteCoverageReportPath

Fields

§path: String
§

ParentTraversalCoverageReportPath

Fields

§path: String
§

TestGapBudgetOutsideProduction

Fields

§

CliTestGapBudgetOutsideProduction

Fields

§source_set: SourceSet
§

TestGapRegressionLimit

Fields

§

MetricBudgetOutsideProduction

Fields

§metric: Metric
§

CliMetricBudgetOutsideProduction

Fields

§source_set: SourceSet
§metric: Metric
§

FileSizeGateWithoutLimit

Fields

§

CliFileSizeBudgetWithoutLimit

§

MetricRegressionLimitOutsideProduction

Fields

§metric: Metric
§

EmptyDialectLanguage

Fields

§

EmptyDialectName

Fields

§

EmptyDialectInclude

Fields

§language: String
§dialect: String
§

EmptyDialectPattern

Fields

§

UnknownDialectLanguage

Fields

§language: String
§known: Vec<String>
§

UnknownDialect

Fields

§language: String
§dialect: String
§known: Vec<String>
§

EmptyHazardRuleName

Fields

§

UnknownFrameworkProfile

Fields

§name: String
§known: Vec<String>
§

EmptyFrameworkProfileName

Fields

§

ConflictingFrameworkProfileRule

Fields

§

EmptyFrameworkProfileObject

Fields

§

InvalidPackageConfigKey

Fields

§package: String
§

DuplicatePackageConfigKey

Fields

§package: String
§

EmptyRatchetPath

Fields

§

AbsoluteRatchetPath

Fields

§path: String
§

ParentTraversalRatchetPath

Fields

§path: String

Trait Implementations§

Source§

impl Debug for ConfigurationFileError

Source§

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

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

impl Display for ConfigurationFileError

Source§

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

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

impl Error for ConfigurationFileError

Source§

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

Returns 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

Replaced by Error::source.
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

Auto Trait Implementations§

§

impl !RefUnwindSafe for ConfigurationFileError

§

impl !UnwindSafe for ConfigurationFileError

§

impl Forget for ConfigurationFileError

§

impl Freeze for ConfigurationFileError

§

impl Move for ConfigurationFileError

§

impl Send for ConfigurationFileError
where RawVecInner: Send, Repr: Send, BoxRaw<ErrorImpl>: Send, &'static str: Send, BoxRaw<Value>: Send,

§

impl Sync for ConfigurationFileError
where RawVecInner: Sync, Repr: Sync, BoxRaw<ErrorImpl>: Sync, BoxRaw<Value>: Sync,

§

impl Unpin for ConfigurationFileError
where *const u8 is !null: Unpin, *const () is !null: Unpin, &'static SimpleMessage: Unpin, *const Custom is !null: Unpin, Box<ErrorImpl>: Unpin, &'static str: Unpin, Box<Value>: Unpin,

§

impl UnsafeUnpin for ConfigurationFileError

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Resource for T
where T: 'static,

Source§

type Rep = Option<T>

The type which is actually stored in-memory for this resource. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.