pub struct ProviderErrorHandler;Expand description
Provider chain error handler
Implementations§
Source§impl ProviderErrorHandler
impl ProviderErrorHandler
Sourcepub fn handle_lsp_failure(
language: &str,
operation: &str,
error: &IdeError,
) -> IdeResult<ProviderErrorContext>
pub fn handle_lsp_failure( language: &str, operation: &str, error: &IdeError, ) -> IdeResult<ProviderErrorContext>
Handle LSP server failure with graceful fallback
Sourcepub fn handle_config_error(error: &IdeError) -> String
pub fn handle_config_error(error: &IdeError) -> String
Handle configuration error with remediation
Sourcepub fn handle_communication_error(
ide_type: &str,
error: &IdeError,
retry_count: u32,
max_retries: u32,
) -> IdeResult<()>
pub fn handle_communication_error( ide_type: &str, error: &IdeError, retry_count: u32, max_retries: u32, ) -> IdeResult<()>
Handle IDE communication error with retry logic
Sourcepub fn handle_timeout_error(
language: &str,
operation: &str,
timeout_ms: u64,
) -> IdeError
pub fn handle_timeout_error( language: &str, operation: &str, timeout_ms: u64, ) -> IdeError
Handle timeout error with suggestions
Sourcepub fn create_fallback_suggestion(context: &ProviderErrorContext) -> String
pub fn create_fallback_suggestion(context: &ProviderErrorContext) -> String
Create a fallback suggestion based on error context
Sourcepub fn create_recovery_suggestion(error: &IdeError) -> String
pub fn create_recovery_suggestion(error: &IdeError) -> String
Create a recovery suggestion based on error type
Sourcepub fn log_error_with_context(context: &ProviderErrorContext)
pub fn log_error_with_context(context: &ProviderErrorContext)
Log error with context
Auto Trait Implementations§
impl Freeze for ProviderErrorHandler
impl RefUnwindSafe for ProviderErrorHandler
impl Send for ProviderErrorHandler
impl Sync for ProviderErrorHandler
impl Unpin for ProviderErrorHandler
impl UnwindSafe for ProviderErrorHandler
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 more