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