* @throws std::runtime_error thrown if given path is empty */
| 38 | * @throws std::runtime_error thrown if given path is empty |
| 39 | */ |
| 40 | FileWithDetails(std::string path, Standards::Language lang, std::size_t size) |
| 41 | : mLang(lang) |
| 42 | , mSize(size) |
| 43 | { |
| 44 | setPath(std::move(path)); |
| 45 | if (mPath.empty()) |
| 46 | throw std::runtime_error("empty path specified"); |
| 47 | } |
| 48 | |
| 49 | void setPath(std::string path) |
| 50 | { |