pub enum EjsError {
UnsupportedTag(String),
LocalFileRefused(String),
Include {
file: String,
path: PathBuf,
io: Error,
},
Stringify {
file: String,
path: PathBuf,
io: Error,
},
Encode {
file: String,
json: Error,
},
}Expand description
Why a document could not be rendered. Each message names the tag or file and where it is.
Variants§
UnsupportedTag(String)
A tag the loader does not evaluate (issue #1095).
LocalFileRefused(String)
An include or stringify in a document fetched from somewhere other than local disk.
Include
Stringify
Encode
Trait Implementations§
Source§impl Error for EjsError
impl Error for EjsError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for EjsError
impl !UnwindSafe for EjsError
impl Freeze for EjsError
impl Send for EjsError
impl Sync for EjsError
impl Unpin for EjsError
impl UnsafeUnpin for EjsError
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