| 4 | namespace obe::Audio::Exceptions |
| 5 | { |
| 6 | class AudioFileNotFound : public Exception |
| 7 | { |
| 8 | public: |
| 9 | AudioFileNotFound( |
| 10 | std::string_view path, std::vector<std::string> mountedPaths, DebugInfo info) |
| 11 | : Exception("AudioFileNotFound", info) |
| 12 | { |
| 13 | this->error( |
| 14 | "Impossible to find audio file at the following path : '{}'", path); |
| 15 | this->hint("The file was supposed to be in one of the following paths : ({})", |
| 16 | fmt::join(mountedPaths, ", ")); |
| 17 | } |
| 18 | }; |
| 19 | } |