#ifndef AFUN_TOOL_EXCEPTION_INLINE_H #define AFUN_TOOL_EXCEPTION_INLINE_H #include "tool-exception.h" namespace aFuntool { inline FileOpenException::FileOpenException(const FilePath &file) { this->message = std::string("File cannot open: ") + file; } inline const char *FileOpenException::what() { return message.c_str(); } inline RegexException::RegexException(const std::string &msg) { this->message = "Regex error: " + msg; } inline const char *RegexException::what() { return message.c_str(); } inline LogFatalError::LogFatalError(const char *msg) { this->message = msg; } inline const char *LogFatalError::what() { return message.c_str(); } } #endif //AFUN_TOOL_EXCEPTION_INLINE_H