pub enum Error {
CellSyntaxError {
filename: PathBuf,
position: Address,
parse_error: Box<ParseError>,
},
CodeSyntaxError {
filename: PathBuf,
parse_error: Box<ParseError>,
},
EvalError {
message: String,
filename: PathBuf,
position: Address,
},
InitError(String),
ModifierSyntaxError {
filename: PathBuf,
parse_error: Box<ParseError>,
position: Address,
},
ObjectWriteError {
filename: PathBuf,
message: String,
},
SourceCodeError {
filename: PathBuf,
message: String,
},
TargetWriteError {
message: String,
output: Output,
},
}Expand description
The various kinds of errors that can occur during compilation and evaluation of a csv++ template.
Variants§
CellSyntaxError
A syntax error in a formula in a cell.
CodeSyntaxError
A syntax error in the code section.
EvalError
An error encountered when evaluating the formulas in a cell. For example if a builtin funciton is called with the wrong number of arguments.
InitError(String)
An error while building the runtime or reading the source code. These are typically not due to user error.
ModifierSyntaxError
A syntax error encountered while parsing the modifiers of a cell.
ObjectWriteError
An error encountered while serializing the compiled template to an object file.
SourceCodeError
An error ecountered reaading or doing an initial parse of the source code.
TargetWriteError
An error encountered while writing to the target.
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> Separable for Twhere
T: Display,
impl<T> Separable for Twhere
T: Display,
source§fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
Adds separators according to the given
SeparatorPolicy. Read moresource§fn separate_with_commas(&self) -> String
fn separate_with_commas(&self) -> String
Inserts a comma every three digits from the right. Read more
source§fn separate_with_spaces(&self) -> String
fn separate_with_spaces(&self) -> String
Inserts a space every three digits from the right. Read more
source§fn separate_with_dots(&self) -> String
fn separate_with_dots(&self) -> String
Inserts a period every three digits from the right. Read more
source§fn separate_with_underscores(&self) -> String
fn separate_with_underscores(&self) -> String
Inserts an underscore every three digits from the right. Read more