| 111 | } |
| 112 | |
| 113 | TestError::TestError(const std::string &msg, LogLevel level, std::string context) |
| 114 | : std::runtime_error{msg}, _level{level}, _msg{msg}, _context{std::move(context)}, _combined{"ERROR: " + msg} |
| 115 | { |
| 116 | if (!_context.empty()) |
| 117 | { |
| 118 | _combined += "\nCONTEXT:\n" + _context; |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | LogLevel TestError::level() const |
| 123 | { |