Skip to content

Commit

Permalink
Update exceptions docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
nuno-andre authored and claudep committed Dec 11, 2020
1 parent 818ad9a commit 7035d79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tablib/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ class TablibException(Exception):


class InvalidDatasetType(TablibException, TypeError):
"""Only Datasets can be added to a DataBook."""
"""Only Datasets can be added to a Databook."""


class InvalidDimensions(TablibException, ValueError):
"""Invalid size."""
"""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 in this Dataset."""
"""Header parameter must be given when appending a column to this Dataset."""


class UnsupportedFormat(TablibException, NotImplementedError):
"""Format is not supported."""
"""Format not supported."""

0 comments on commit 7035d79

Please sign in to comment.