pytest-csv-params/pytest_csv_params/exception.py

31 lines
818 B
Python
Raw Permalink Normal View History

2022-08-14 22:01:28 +02:00
"""
Collection of all plugin specific exceptions. All exceptions are derived from very common base types, such as
:class:`FileNotFoundError`, :class:`IOError` or :class:`ValueError` to ease the exception handling.
2022-08-14 22:01:28 +02:00
"""
class CsvParamsDataFileNotFound(FileNotFoundError):
"""
This exception is thrown when a CSV file was not found.
2022-08-14 22:01:28 +02:00
"""
class CsvParamsDataFileInaccessible(IOError):
"""
This exception is thrown when the CSV file is inaccessible.
2022-08-14 22:01:28 +02:00
"""
class CsvParamsDataFileInvalid(ValueError):
"""
This exception is thrown when a CSV file contains invalid data.
See the exception message for more details.
2022-08-14 22:01:28 +02:00
"""
class CsvHeaderNameInvalid(ValueError):
"""
This exception is thrown when a CSV file contains an invalid header name that could not be replaced.
"""