pub enum LibraryError {
Show 25 variants
NotFound {
library_name: String,
},
NoBaseDirectory,
ImportEscapesRoot,
EmptyLibraryPath,
StatePoisoned,
CyclicImport {
id: LibraryId,
},
InvalidIncludeRoot {
path: PathBuf,
source: Error,
},
InvalidLibraryPath {
path: PathBuf,
source: Error,
},
ReadFailed {
path: PathBuf,
source: Error,
},
NotUtf8 {
kind: &'static str,
path: PathBuf,
source: FromUtf8Error,
},
NotUtf8Remote {
url: String,
source: FromUtf8Error,
},
ShaMismatchStdlib {
library: String,
expected: String,
actual: String,
},
ShaMismatchPath {
kind: &'static str,
path: PathBuf,
expected: String,
actual: String,
},
MissingExport {
library: Symbol,
export: Symbol,
},
DuplicateImportedName {
name: Symbol,
},
ImportNameConflictsWithLocal {
library: Symbol,
name: Symbol,
},
Lex {
source: LexicalError,
},
LexInLibrary {
library: LibraryId,
source: LexicalError,
},
Parse {
errors: Vec<ParserErr>,
},
ParseInLibrary {
library: LibraryId,
errors: Vec<ParserErr>,
},
TopLevelExprInLibrary {
library: LibraryId,
},
InvalidGithubImport {
url: String,
},
UnpinnedGithubImport {
url: String,
},
CurlFailed {
source: Error,
},
CurlNonZeroExit {
url: String,
status: ExitStatus,
},
}Variants§
NotFound
NoBaseDirectory
ImportEscapesRoot
EmptyLibraryPath
StatePoisoned
CyclicImport
InvalidIncludeRoot
InvalidLibraryPath
ReadFailed
NotUtf8
NotUtf8Remote
ShaMismatchStdlib
ShaMismatchPath
MissingExport
DuplicateImportedName
ImportNameConflictsWithLocal
Lex
Fields
§
source: LexicalErrorLexInLibrary
Parse
ParseInLibrary
TopLevelExprInLibrary
InvalidGithubImport
UnpinnedGithubImport
CurlFailed
CurlNonZeroExit
Trait Implementations§
Source§impl Debug for LibraryError
impl Debug for LibraryError
Source§impl Display for LibraryError
impl Display for LibraryError
Source§impl Error for LibraryError
impl Error for LibraryError
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<LibraryError> for EngineError
impl From<LibraryError> for EngineError
Source§fn from(err: LibraryError) -> Self
fn from(err: LibraryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LibraryError
impl !RefUnwindSafe for LibraryError
impl Send for LibraryError
impl Sync for LibraryError
impl Unpin for LibraryError
impl UnsafeUnpin for LibraryError
impl !UnwindSafe for LibraryError
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