| 31 | std::string get_error() const { return error_msg_; } |
| 32 | |
| 33 | void set_error_msg(const char* error_msg) { |
| 34 | // Remember the first error only. |
| 35 | if (error_msg_.empty()) { |
| 36 | error_msg_ = std::string(error_msg); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | bool has_error() const { return !error_msg_.empty(); } |
| 41 |
no test coverage detected