11 #ifndef UTILSEXECPT_H_
12 #define UTILSEXECPT_H_
41 std::cout <<
"Contructor Base FileError with one argument filename " << std::endl;
50 virtual const char *
what() const noexcept {
78 FileReadError(
const std::string& fileNameIn,
int lineNumIn = -1 );
79 FileReadError(
const std::string& fileNameIn,
const std::string& msg );
Base class for error handling with files.
Specific class when the file cannot be found and opened.
FileError(const std::string &fileIn, const std::string(msg))
virtual const char * what() const noexcept
for getting the message with standard interface do not throw exception
for dealing with error in reading, problem of formatting for instance
std::string getFileName() const
FileReadError(const std::string &fileNameIn, int lineNumIn=-1)
FileEmptyError(const std::string &fileNameIn)
if empty eally or empty of data
FileError(const std::string &fileIn)
add my own, if file is empty really or empty of data
FileOpenError(const std::string &fileNameIn)
Modify the message do make it explicit.