pub enum Error {
Config(ConfigError),
Discovery(DiscoveryError),
Parser(ParserError),
Resolver(ResolverError),
Lsp(LspError),
InvalidPath(String),
Io(Error),
Other(String),
}Expand description
Main error type for the Rez LSP server.
This enum represents all possible errors that can occur in the LSP server. Each variant contains specific error information and context to help with debugging and error reporting.
§Error Categories
- Config: Configuration and environment setup errors
- Discovery: Package discovery and scanning errors
- Parser: Package file parsing errors
- Resolver: Dependency resolution errors
- Lsp: LSP protocol and communication errors
- Io: File system and I/O errors
- Other: Miscellaneous errors
Variants§
Config(ConfigError)
Configuration related errors
Discovery(DiscoveryError)
Package discovery related errors
Parser(ParserError)
Package parsing related errors
Resolver(ResolverError)
Dependency resolution related errors
Lsp(LspError)
LSP protocol related errors
InvalidPath(String)
Invalid file path
Io(Error)
I/O related errors
Other(String)
Other errors
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ConfigError> for Error
impl From<ConfigError> for Error
Source§fn from(err: ConfigError) -> Self
fn from(err: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<DiscoveryError> for Error
impl From<DiscoveryError> for Error
Source§fn from(err: DiscoveryError) -> Self
fn from(err: DiscoveryError) -> Self
Converts to this type from the input type.
Source§impl From<ParserError> for Error
impl From<ParserError> for Error
Source§fn from(err: ParserError) -> Self
fn from(err: ParserError) -> Self
Converts to this type from the input type.
Source§impl From<ResolverError> for Error
impl From<ResolverError> for Error
Source§fn from(err: ResolverError) -> Self
fn from(err: ResolverError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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