Retrieve the description of code
| 67 | |
| 68 | //! Retrieve the description of code |
| 69 | const char *what(int val) const { |
| 70 | auto iter = map_.find(val); |
| 71 | if (iter != map_.end()) { |
| 72 | return iter->second->desc(); |
| 73 | } |
| 74 | return ""; |
| 75 | } |
| 76 | |
| 77 | //! Retrieve the singleton |
| 78 | static ErrorCode *Instance(void) { |