From 24798f19cab3a9da42477418afc0e0ee7eff556a Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Fri, 25 Jul 2025 10:23:52 +0900 Subject: [PATCH] Add CSV Exceptions --- src/corelibs/exceptions/csv_exceptions.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/corelibs/exceptions/csv_exceptions.py diff --git a/src/corelibs/exceptions/csv_exceptions.py b/src/corelibs/exceptions/csv_exceptions.py new file mode 100644 index 0000000..35bdfff --- /dev/null +++ b/src/corelibs/exceptions/csv_exceptions.py @@ -0,0 +1,23 @@ +""" +Exceptions for csv file reading and processing +""" + + +class NoCsvReader(Exception): + """ + CSV reader is none + """ + + +class CsvHeaderDataMissing(Exception): + """ + The csv reader returned None as headers, the header column in the csv file is missing + """ + + +class CompulsoryCsvHeaderCheckFailed(Exception): + """ + raise if the header is not matching to the excpeted values + """ + +# __END__