| 189 | const char* Exception::what() const throw() { return msg.c_str(); } |
| 190 | |
| 191 | void Exception::formatMessage() |
| 192 | { |
| 193 | if( func.size() > 0 ) |
| 194 | msg = format("%s:%d: error: (%d) %s in function %s\n", file.c_str(), line, code, err.c_str(), func.c_str()); |
| 195 | else |
| 196 | msg = format("%s:%d: error: (%d) %s\n", file.c_str(), line, code, err.c_str()); |
| 197 | } |
| 198 | |
| 199 | struct HWFeatures |
| 200 | { |