pub enum CatError {
NoTeacherFolder,
TeachersArentFolder,
InvalidTeacherCard {
name: String,
err: Error,
},
InvalidOrMissingHeader,
InvalidHeaderFormat {
err: Error,
},
CommandFailed {
name: String,
status: i32,
error: String,
},
NotARepo {
error: String,
},
TinyError {
error: String,
},
OrphanRender {
site: String,
render: RenderType,
},
OtherError {
msg: String,
},
}Expand description
výčet obsahující možné chyby
Variants§
NoTeacherFolder
Složka teachers neexistuje
TeachersArentFolder
Soubor teachers není složka
InvalidTeacherCard
Karta učitele nemá správný formát
InvalidOrMissingHeader
Souboru chybí header, nebo je nesprávně ukončený
InvalidHeaderFormat
Header souboru není možné naparsovat jako TOML, nebo neobsahuje všechny povinné hodnoty
CommandFailed
Nepodařilo se spustit příkaz v shell, nšbo došlo k chybě při běhu.
Může implikovat, že některý z následujících nástrojů není dostupný:
- git
- ls
- xargs
- true
- sh
Fields
NotARepo
mdBook neběží v repozitáři.
Pro uživatelské funkce vyžaduje cat-prep gitový repozitář
Fields
TinyError
v šablonovém enginu tinytemplate došlo k chybě
OrphanRender
některý render zůstal po zavolání funkce render::execute_renders nevyužitý
OtherError
jiná chyba (pro využití 3. stranou)
Trait Implementations§
Source§impl Fail for CatError
impl Fail for CatError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreAuto Trait Implementations§
impl Freeze for CatError
impl RefUnwindSafe for CatError
impl Send for CatError
impl Sync for CatError
impl Unpin for CatError
impl UnsafeUnpin for CatError
impl UnwindSafe for CatError
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