Source code for pytablewriter.error

# encoding: utf-8

"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""

from __future__ import absolute_import


class NotSupportedError(Exception):
    pass


[docs]class EmptyTableNameError(Exception): """ Exception raised when a table writer class of the |table_name| attribute is null and the class is not accepted null |table_name|. """
[docs]class EmptyHeaderError(Exception): """ Exception raised when a table writer class of the |headers| attribute is null, and the class is not accepted null |headers|. """
[docs]class EmptyValueError(Exception): """ Exception raised when a table writer class of the |value_matrix| attribute is null, and the class is not accepted null |value_matrix|. """
[docs]class EmptyTableDataError(Exception): """ Exception raised when a table writer class of the |headers| and |value_matrix| attributes are null. """
[docs]class WriterNotFoundError(Exception): """ Exception raised when appropriate loader writer found. """