table::error
The one error type. Every message says what went wrong and what to write instead.
Enums
TableErrorSource
pub enum TableErrorWhat went wrong in a table operation.
nabi
let t = table::table!{ "name": ["a", "b"] };
let c = try t.column("nmae") catch e {
assert(f"{e}".contains("did you mean `name`"));
return;
};
panic(f"found {c}");
No column of that name;
closestis the nearest existing name.Two columns would share a name.
A column holds another type than the operation needs.
A column's length differs from the table's.
Row
row(0-based) haslencells where the table hasexpectedcolumns.Text that does not read as a table: CSV / JSON lines input.
A read or write failed.
An argument outside what the operation accepts.
A binary file (
formatis "arrow" or "parquet") that is malformed, or uses a feature this package does not read.The message, as
Displaywrites it.
Trait implementations 3
impl Display for TableErrorimpl Debug for TableErrorimpl Error for TableError