pub enum LangsError {
Show 53 variants
TempFile(Error),
TempDir(Error),
InvalidParam(String, ParamError),
Zstd(Error),
ZstdDecode(Error),
TarIntoInner(Error),
TarFinish(Error),
TarAppend(PathBuf, Error),
TarExtract(PathBuf, Error),
MutexError,
NoProjectDirInZip(PathBuf),
ZipWrite(Error),
ZipExtract(PathBuf, ZipError),
SubmissionParse(PathBuf, Box<Self>),
DeserializeCredentials(PathBuf, JsonError),
DeserializeJson(PathBuf, JsonError),
DeserializeYaml(PathBuf, YamlError),
NoLocalDataDir,
NoConfigDir,
NonEmptyDir(PathBuf),
DirectoryExists(PathBuf),
ProjectsDirNotString,
MovingProjectsDirToItself,
NoProjectsDir,
NoProjectExercise,
Base64PasswordNotUtf8(FromUtf8Error),
Base64Decode(DecodeError),
SettingsCannotContainNull,
SettingNumberTooHigh(Number),
NoPlugin,
InvalidNotebook(&'static str),
InvalidZipPath {
zip_path: PathBuf,
file_path: String,
},
NoParentDir(PathBuf),
InvalidCachePath(PathBuf),
InvalidDirectory(PathBuf),
ExerciseMissingOnServer(u32),
NixPermissionChange(PathBuf, Error),
NixFlag(mode_t),
Canonicalize(PathBuf, Error),
Tmc(TmcError),
Plugin(PluginError),
FileError(FileError),
WalkDir(Error),
Zip(ZipError),
Yaml(Error),
TomlSerialize(Error),
TomlDeserialize(TomlError),
Json(Error),
Jwt(Error),
Hmac(InvalidLength),
TestMyCodeClient(Box<TestMyCodeClientError>),
MoocClient(Box<MoocClientError>),
PersistTempFile(PersistError),
}Expand description
Main error type of the library.
Variants§
TempFile(Error)
TempDir(Error)
InvalidParam(String, ParamError)
Zstd(Error)
ZstdDecode(Error)
TarIntoInner(Error)
TarFinish(Error)
TarAppend(PathBuf, Error)
TarExtract(PathBuf, Error)
MutexError
NoProjectDirInZip(PathBuf)
ZipWrite(Error)
ZipExtract(PathBuf, ZipError)
SubmissionParse(PathBuf, Box<Self>)
DeserializeCredentials(PathBuf, JsonError)
DeserializeJson(PathBuf, JsonError)
DeserializeYaml(PathBuf, YamlError)
NoLocalDataDir
NoConfigDir
NonEmptyDir(PathBuf)
DirectoryExists(PathBuf)
ProjectsDirNotString
MovingProjectsDirToItself
NoProjectsDir
NoProjectExercise
Base64PasswordNotUtf8(FromUtf8Error)
Base64Decode(DecodeError)
SettingsCannotContainNull
SettingNumberTooHigh(Number)
NoPlugin
InvalidNotebook(&'static str)
InvalidZipPath
NoParentDir(PathBuf)
InvalidCachePath(PathBuf)
InvalidDirectory(PathBuf)
ExerciseMissingOnServer(u32)
NixPermissionChange(PathBuf, Error)
NixFlag(mode_t)
Canonicalize(PathBuf, Error)
Tmc(TmcError)
Plugin(PluginError)
FileError(FileError)
WalkDir(Error)
Zip(ZipError)
Yaml(Error)
TomlSerialize(Error)
TomlDeserialize(TomlError)
Json(Error)
Jwt(Error)
Hmac(InvalidLength)
TestMyCodeClient(Box<TestMyCodeClientError>)
MoocClient(Box<MoocClientError>)
PersistTempFile(PersistError)
Trait Implementations§
Source§impl Debug for LangsError
impl Debug for LangsError
Source§impl Display for LangsError
impl Display for LangsError
Source§impl Error for LangsError
impl Error for LangsError
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<Box<MoocClientError>> for LangsError
impl From<Box<MoocClientError>> for LangsError
Source§fn from(source: Box<MoocClientError>) -> Self
fn from(source: Box<MoocClientError>) -> Self
Converts to this type from the input type.
Source§impl From<Box<TestMyCodeClientError>> for LangsError
impl From<Box<TestMyCodeClientError>> for LangsError
Source§fn from(source: Box<TestMyCodeClientError>) -> Self
fn from(source: Box<TestMyCodeClientError>) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for LangsError
impl From<DecodeError> for LangsError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for LangsError
impl From<Error> for LangsError
Source§impl From<Error> for LangsError
impl From<Error> for LangsError
Source§impl From<Error> for LangsError
impl From<Error> for LangsError
Source§impl From<Error> for LangsError
impl From<Error> for LangsError
Source§impl From<Error> for LangsError
impl From<Error> for LangsError
Source§impl From<FileError> for LangsError
impl From<FileError> for LangsError
Source§impl From<InvalidLength> for LangsError
impl From<InvalidLength> for LangsError
Source§fn from(source: InvalidLength) -> Self
fn from(source: InvalidLength) -> Self
Converts to this type from the input type.
Source§impl From<PersistError> for LangsError
impl From<PersistError> for LangsError
Source§fn from(source: PersistError) -> Self
fn from(source: PersistError) -> Self
Converts to this type from the input type.
Source§impl From<PluginError> for LangsError
impl From<PluginError> for LangsError
Source§fn from(source: PluginError) -> Self
fn from(source: PluginError) -> Self
Converts to this type from the input type.
Source§impl From<TmcError> for LangsError
impl From<TmcError> for LangsError
Source§impl From<TomlError> for LangsError
impl From<TomlError> for LangsError
Auto Trait Implementations§
impl Freeze for LangsError
impl !RefUnwindSafe for LangsError
impl Send for LangsError
impl Sync for LangsError
impl Unpin for LangsError
impl !UnwindSafe for LangsError
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.