Skip to main content

ApplicationError

Enum ApplicationError 

Source
pub enum ApplicationError {
Show 46 variants ReadFile { path: PathBuf, source: Error, }, WriteFile { path: PathBuf, source: Error, }, Manifest(ManifestError), UntrustedGlobalPolicySource { config: PathBuf, repository: String, }, ExtractionLimit(ExtractionLimitExceeded), ExecutionLimit(ExecutionLimitExceeded), HttpExtraction(HttpExtractionError), PackageManifest(PackageManifestError), GeneratedClient(GeneratedClientError), Graphql(GraphqlExtractionError), Event(EventExtractionError), Protobuf(ProtobufExtractionError), Data(DataExtractionError), Infrastructure(InfrastructureExtractionError), Documentation(DocumentationExtractionError), ConfigExtraction(ConfigExtractionError), SourceSyntax(SourceSyntaxError), InvalidSourceObservation(String), BatchPlan(BatchPlanError), Link(LinkError), ManualLink(ManualLinkError), Registry(RegistryError), Config(ConfigError), ManifestEdit(ManifestEditError), RegistryAliasMissing(String), UnknownOverrideRepository(String), WorkspaceNameMismatch { requested: String, manifest: String, }, WorkspaceAlreadyExists(String), WatcherAlreadyActive(String), WorkspaceNotFound(String), PartialScanBudgetChanged, ArtifactOutsideCheckout { path: PathBuf, checkout: PathBuf, }, UnsafeArtifactPath, Store(StoreError), Trace(TraceError), Community(CommunityError), Query(QueryError), Impact(ImpactError), Change(ChangeError), ChangeAnalysis(ChangeAnalysisError), Interface(InterfaceError), PullRequest(PullRequestError), Initialization(String), TransientExecution(String), SupervisedApplication { exit_code: ExitCode, message: String, }, InvalidTraceDepth { found: usize, maximum: usize, },
}
Expand description

Error returned while executing delivery-layer application operations.

Variants§

§

ReadFile

File input could not be read.

Fields

§path: PathBuf

Path that could not be read.

§source: Error

Underlying operating-system error.

§

WriteFile

Explicit output could not be created without overwriting existing data.

Fields

§path: PathBuf

Path that could not be created.

§source: Error

Underlying operating-system error.

§

Manifest(ManifestError)

Workspace manifest was invalid.

§

UntrustedGlobalPolicySource

An analyzed repository attempted to control advanced global resource policy.

Fields

§config: PathBuf

Canonical workspace manifest path.

§repository: String

Manifest alias whose checkout contains the policy source.

§

ExtractionLimit(ExtractionLimitExceeded)

An extractor exhausted one configured per-invocation resource.

§

ExecutionLimit(ExecutionLimitExceeded)

A supervised pass exhausted one configured execution resource.

§

HttpExtraction(HttpExtractionError)

HTTP boundary artifact was invalid.

§

PackageManifest(PackageManifestError)

Focused package manifest was malformed.

§

GeneratedClient(GeneratedClientError)

Generated-client metadata was malformed or unsafe.

§

Graphql(GraphqlExtractionError)

GraphQL contract or persisted-operation metadata was malformed.

§

Event(EventExtractionError)

AsyncAPI event contract was malformed or unsupported.

§

Protobuf(ProtobufExtractionError)

Protobuf contract was malformed or internally inconsistent.

§

Data(DataExtractionError)

Database or SQL artifact was malformed or unsupported.

§

Infrastructure(InfrastructureExtractionError)

Infrastructure or deployment artifact was malformed or unsupported.

§

Documentation(DocumentationExtractionError)

Documentation, catalog, or ownership artifact was malformed.

§

ConfigExtraction(ConfigExtractionError)

Secret-safe configuration key extraction failed.

§

SourceSyntax(SourceSyntaxError)

Mandatory source grammar inspection failed.

§

InvalidSourceObservation(String)

A focused parser emitted a fact without structural syntax corroboration.

§

BatchPlan(BatchPlanError)

Incremental extractor batch state was inconsistent.

Deterministic linking failed.

Exact manual relationship resolution failed.

§

Registry(RegistryError)

Repository registry validation failed.

§

Config(ConfigError)

Effective repository configuration could not be resolved.

§

ManifestEdit(ManifestEditError)

Workspace manifest mutation failed.

§

RegistryAliasMissing(String)

A validated registry unexpectedly omitted a manifest alias.

§

UnknownOverrideRepository(String)

CLI override references an unknown repository alias.

§

WorkspaceNameMismatch

Requested workspace name differs from the manifest.

Fields

§requested: String

Name supplied by the caller.

§manifest: String

Name declared by the manifest.

§

WorkspaceAlreadyExists(String)

Workspace already exists in the selected registry.

§

WatcherAlreadyActive(String)

Another verified watcher owns the workspace lease.

§

WorkspaceNotFound(String)

Workspace is absent from the selected registry.

§

PartialScanBudgetChanged

A targeted scan cannot mix batches produced under different global budgets.

§

ArtifactOutsideCheckout

An extractor artifact resolves outside its repository checkout.

Fields

§path: PathBuf

Configured artifact path.

§checkout: PathBuf

Canonical checkout root.

§

UnsafeArtifactPath

Artifact path display contains unsafe metadata characters.

§

Store(StoreError)

Persistent storage failed.

§

Trace(TraceError)

Federated graph construction or traversal failed.

§

Community(CommunityError)

Deterministic community analysis failed.

§

Query(QueryError)

Ranked search or bounded traversal inputs were invalid.

§

Impact(ImpactError)

Federated impact or risk inputs were invalid.

§

Change(ChangeError)

Git change collection or commit-gate input was invalid.

§

ChangeAnalysis(ChangeAnalysisError)

Semantic mapping or change-impact analysis failed.

§

Interface(InterfaceError)

Public interface request or rendering failed validation.

§

PullRequest(PullRequestError)

Opt-in pull-request inspection failed.

§

Initialization(String)

Workspace initialization could not be completed safely.

§

TransientExecution(String)

A supervised worker observed a retryable operating-system or storage contention failure.

§

SupervisedApplication

A worker preserved the public classification of an application failure across IPC.

Fields

§exit_code: ExitCode

Stable public exit classification produced inside the worker.

§message: String

Bounded error explanation produced inside the worker.

§

InvalidTraceDepth

Client requested a traversal depth outside server bounds.

Fields

§found: usize

Requested depth.

§maximum: usize

Non-overridable server maximum.

Trait Implementations§

Source§

impl Debug for ApplicationError

Source§

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

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

impl Display for ApplicationError

Source§

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

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

impl Error for ApplicationError

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

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<BatchPlanError> for ApplicationError

Source§

fn from(source: BatchPlanError) -> Self

Converts to this type from the input type.
Source§

impl From<ChangeAnalysisError> for ApplicationError

Source§

fn from(source: ChangeAnalysisError) -> Self

Converts to this type from the input type.
Source§

impl From<ChangeError> for ApplicationError

Source§

fn from(source: ChangeError) -> Self

Converts to this type from the input type.
Source§

impl From<CommunityError> for ApplicationError

Source§

fn from(source: CommunityError) -> Self

Converts to this type from the input type.
Source§

impl From<ConfigError> for ApplicationError

Source§

fn from(source: ConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<ConfigExtractionError> for ApplicationError

Source§

fn from(source: ConfigExtractionError) -> Self

Converts to this type from the input type.
Source§

impl From<DataExtractionError> for ApplicationError

Source§

fn from(source: DataExtractionError) -> Self

Converts to this type from the input type.
Source§

impl From<DocumentationExtractionError> for ApplicationError

Source§

fn from(source: DocumentationExtractionError) -> Self

Converts to this type from the input type.
Source§

impl From<EventExtractionError> for ApplicationError

Source§

fn from(source: EventExtractionError) -> Self

Converts to this type from the input type.
Source§

impl From<ExecutionLimitExceeded> for ApplicationError

Source§

fn from(source: ExecutionLimitExceeded) -> Self

Converts to this type from the input type.
Source§

impl From<ExtractionLimitExceeded> for ApplicationError

Source§

fn from(source: ExtractionLimitExceeded) -> Self

Converts to this type from the input type.
Source§

impl From<GeneratedClientError> for ApplicationError

Source§

fn from(source: GeneratedClientError) -> Self

Converts to this type from the input type.
Source§

impl From<GraphqlExtractionError> for ApplicationError

Source§

fn from(source: GraphqlExtractionError) -> Self

Converts to this type from the input type.
Source§

impl From<HttpExtractionError> for ApplicationError

Source§

fn from(source: HttpExtractionError) -> Self

Converts to this type from the input type.
Source§

impl From<ImpactError> for ApplicationError

Source§

fn from(source: ImpactError) -> Self

Converts to this type from the input type.
Source§

impl From<InfrastructureExtractionError> for ApplicationError

Source§

fn from(source: InfrastructureExtractionError) -> Self

Converts to this type from the input type.
Source§

impl From<InterfaceError> for ApplicationError

Source§

fn from(source: InterfaceError) -> Self

Converts to this type from the input type.
Source§

impl From<LinkError> for ApplicationError

Source§

fn from(source: LinkError) -> Self

Converts to this type from the input type.
Source§

impl From<ManifestEditError> for ApplicationError

Source§

fn from(source: ManifestEditError) -> Self

Converts to this type from the input type.
Source§

impl From<ManifestError> for ApplicationError

Source§

fn from(source: ManifestError) -> Self

Converts to this type from the input type.
Source§

impl From<ManualLinkError> for ApplicationError

Source§

fn from(source: ManualLinkError) -> Self

Converts to this type from the input type.
Source§

impl From<PackageManifestError> for ApplicationError

Source§

fn from(source: PackageManifestError) -> Self

Converts to this type from the input type.
Source§

impl From<ProtobufExtractionError> for ApplicationError

Source§

fn from(source: ProtobufExtractionError) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestError> for ApplicationError

Source§

fn from(source: PullRequestError) -> Self

Converts to this type from the input type.
Source§

impl From<QueryError> for ApplicationError

Source§

fn from(source: QueryError) -> Self

Converts to this type from the input type.
Source§

impl From<RegistryError> for ApplicationError

Source§

fn from(source: RegistryError) -> Self

Converts to this type from the input type.
Source§

impl From<SourceSyntaxError> for ApplicationError

Source§

fn from(source: SourceSyntaxError) -> Self

Converts to this type from the input type.
Source§

impl From<StoreError> for ApplicationError

Source§

fn from(source: StoreError) -> Self

Converts to this type from the input type.
Source§

impl From<TraceError> for ApplicationError

Source§

fn from(source: TraceError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more