pub enum Error {
CellSyntaxError {
filename: PathBuf,
position: Address,
parse_error: Box<ParseError>,
},
CodeSyntaxError {
filename: PathBuf,
parse_error: Box<ParseError>,
},
EvalError {
eval_error: Box<EvalError>,
filename: PathBuf,
position: Option<Address>,
},
GoogleSetupError(String),
InitError(String),
ModuleLoadError(String),
ModuleLoadErrors(HashMap<ModulePath, Error>),
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++ module.
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.
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 compiler or reading the source code. These are typically not due to user error.
ModuleLoadError(String)
ModuleLoadErrors(HashMap<ModulePath, Error>)
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()
source§impl<T> From<PoisonError<T>> for Error
impl<T> From<PoisonError<T>> for Error
source§fn from(e: PoisonError<T>) -> Self
fn from(e: PoisonError<T>) -> Self
Converts to this type from the input type.
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