18 std::cout <<
"Constructor FileOpenError 1 string argument fileNameIn " << fileNameIn << std::endl;
20 mFileMsg =
"FileOpenError : Unable to open " + fileNameIn +
"\n";
27 mFileMsg =
"FileEmptyError : File is empty " + fileNameIn+
"\n";
32 :
FileError(fileNameIn), mLineNum(lineNumIn)
34 mFileMsg =
"FileReadError in reading data in " + fileNameIn ;
44 mFileMsg =
"FileReadError in reading data in " + fileNameIn +
" ";
Define general exception, of general utility.
Base class for error handling with files.
Group general functions to convert to/from string, split line...
std::string toString(const T &t)
FileReadError(const std::string &fileNameIn, int lineNumIn=-1)
FileEmptyError(const std::string &fileNameIn)
if empty eally or empty of data
FileOpenError(const std::string &fileNameIn)
Modify the message do make it explicit.