packages

table::error

On this page

The one error type. Every message says what went wrong and what to write instead.

Enums

TableErrorSource

pub enum TableError

What 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}");
  • MissingColumn§

    Source

    No column of that name; closest is the nearest existing name.

  • DuplicateColumn§

    Source

    Two columns would share a name.

  • TypeMismatch§

    Source

    A column holds another type than the operation needs.

  • LengthMismatch§

    Source

    A column's length differs from the table's.

  • RaggedRow§

    Source

    Row row (0-based) has len cells where the table has expected columns.

  • Text that does not read as a table: CSV / JSON lines input.

  • A read or write failed.

  • Invalid§

    Source

    An argument outside what the operation accepts.

  • Format§

    Source

    A binary file (format is "arrow" or "parquet") that is malformed, or uses a feature this package does not read.

  • pub fn message(self) -> str§

    Source

    The message, as Display writes it.

Trait implementations 3
  • impl Display for TableError
  • impl Debug for TableError
  • impl Error for TableError