Skip to content
Snippets Groups Projects
Commit 7e49e538 authored by Martin Beseda's avatar Martin Beseda
Browse files

ENH: Enhanced message of the invalid filepath exception in CSVReader.

parent 3a90c96e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment