tablib.exceptions 源代码

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