pub struct ErrorCode(/* private fields */);Expand description
Structured error code for documentation and programmatic handling.
Error codes follow a category-based scheme:
- E001-E009: I/O and filesystem errors
- E010-E019: Parse errors
- E020-E029: Configuration errors
- E030-E039: Analysis errors
- E040-E049: CLI errors
- E050-E059: Validation errors
Implementations§
Source§impl ErrorCode
impl ErrorCode
Sourcepub const IO_FILE_NOT_FOUND: ErrorCode
pub const IO_FILE_NOT_FOUND: ErrorCode
I/O error - file not found
Sourcepub const IO_PERMISSION_DENIED: ErrorCode
pub const IO_PERMISSION_DENIED: ErrorCode
I/O error - permission denied
Sourcepub const IO_RESOURCE_BUSY: ErrorCode
pub const IO_RESOURCE_BUSY: ErrorCode
I/O error - resource busy
Sourcepub const IO_GENERIC: ErrorCode
pub const IO_GENERIC: ErrorCode
I/O error - generic
Sourcepub const PARSE_SYNTAX: ErrorCode
pub const PARSE_SYNTAX: ErrorCode
Parse error - syntax error
Sourcepub const PARSE_UNSUPPORTED: ErrorCode
pub const PARSE_UNSUPPORTED: ErrorCode
Parse error - unsupported language
Sourcepub const PARSE_ENCODING: ErrorCode
pub const PARSE_ENCODING: ErrorCode
Parse error - invalid encoding
Sourcepub const PARSE_GENERIC: ErrorCode
pub const PARSE_GENERIC: ErrorCode
Parse error - generic
Sourcepub const CONFIG_INVALID: ErrorCode
pub const CONFIG_INVALID: ErrorCode
Config error - invalid value
Sourcepub const CONFIG_MISSING: ErrorCode
pub const CONFIG_MISSING: ErrorCode
Config error - missing required field
Sourcepub const CONFIG_FILE_NOT_FOUND: ErrorCode
pub const CONFIG_FILE_NOT_FOUND: ErrorCode
Config error - file not found
Sourcepub const CONFIG_GENERIC: ErrorCode
pub const CONFIG_GENERIC: ErrorCode
Config error - generic
Sourcepub const ANALYSIS_COMPLEXITY: ErrorCode
pub const ANALYSIS_COMPLEXITY: ErrorCode
Analysis error - complexity calculation failed
Sourcepub const ANALYSIS_COVERAGE: ErrorCode
pub const ANALYSIS_COVERAGE: ErrorCode
Analysis error - coverage loading failed
Sourcepub const ANALYSIS_SCORING: ErrorCode
pub const ANALYSIS_SCORING: ErrorCode
Analysis error - debt scoring failed
Sourcepub const ANALYSIS_GENERIC: ErrorCode
pub const ANALYSIS_GENERIC: ErrorCode
Analysis error - generic
Sourcepub const CLI_INVALID_COMMAND: ErrorCode
pub const CLI_INVALID_COMMAND: ErrorCode
CLI error - invalid command
Sourcepub const CLI_MISSING_ARG: ErrorCode
pub const CLI_MISSING_ARG: ErrorCode
CLI error - missing argument
Sourcepub const CLI_INVALID_ARG: ErrorCode
pub const CLI_INVALID_ARG: ErrorCode
CLI error - invalid argument
Sourcepub const CLI_GENERIC: ErrorCode
pub const CLI_GENERIC: ErrorCode
CLI error - generic
Sourcepub const VALIDATION_GENERIC: ErrorCode
pub const VALIDATION_GENERIC: ErrorCode
Validation error - generic
Sourcepub const VALIDATION_THRESHOLD: ErrorCode
pub const VALIDATION_THRESHOLD: ErrorCode
Validation error - threshold exceeded
Sourcepub const VALIDATION_CONSTRAINT: ErrorCode
pub const VALIDATION_CONSTRAINT: ErrorCode
Validation error - constraint violated
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EnsureExt<T> for T
impl<T> EnsureExt<T> for T
Source§fn ensure<P, E>(self, predicate: P, error: E) -> Validation<T, NonEmptyVec<E>>where
P: Predicate<T>,
fn ensure<P, E>(self, predicate: P, error: E) -> Validation<T, NonEmptyVec<E>>where
P: Predicate<T>,
Source§fn ensure_with<P, E, F>(
self,
predicate: P,
error_fn: F,
) -> Validation<T, NonEmptyVec<E>>
fn ensure_with<P, E, F>( self, predicate: P, error_fn: F, ) -> Validation<T, NonEmptyVec<E>>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more