From 7e49e53886bf9500eb2cd498f90dcf9ba8f628f5 Mon Sep 17 00:00:00 2001 From: Martin Beseda <martin.beseda@vsb.cz> Date: Tue, 18 Dec 2018 23:08:30 +0100 Subject: [PATCH] ENH: Enhanced message of the invalid filepath exception in CSVReader. --- src/CSVReader/CSVReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CSVReader/CSVReader.cpp b/src/CSVReader/CSVReader.cpp index 2fcc1004..11e82a0e 100644 --- a/src/CSVReader/CSVReader.cpp +++ b/src/CSVReader/CSVReader.cpp @@ -12,7 +12,7 @@ namespace lib4neuro { CSVReader::CSVReader(std::string file_path, std::string delimiter, bool ignore_first_line) { if(!std::filesystem::exists(file_path)) { - throw std::runtime_error("The specified file path does not exist!"); + throw lib4neuro::FileNotFoundException("The specified file path in CSVReader does not exist!"); } this->file_path = file_path; -- GitLab