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,
},
GoogleSetupError(String),
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.
GoogleSetupError(String)
Google Sheets requires that the gcloud CLI tools are installed and configured. If we
think they’re not, this message includes a lot of details about setting them up. So
it’s very Google Sheets-specific.
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)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
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
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
SeparatorPolicy. Read more