Source code for tablib.exceptions

[docs] class TablibException(Exception): """Tablib common exception."""
[docs] class InvalidDatasetType(TablibException, TypeError): """Only Datasets can be added to a Databook."""
[docs] class InvalidDimensions(TablibException, ValueError): """The size of the column or row doesn't fit the table dimensions."""
[docs] class InvalidDatasetIndex(TablibException, IndexError): """Outside of Dataset size."""
[docs] class HeadersNeeded(TablibException, AttributeError): """Header parameter must be given when appending a column to this Dataset."""
[docs] class UnsupportedFormat(TablibException, NotImplementedError): """Format not supported."""