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