#pragma once #include #include #include #include class InvalidRLEFileError : public std::runtime_error { public: explicit InvalidRLEFileError( const std::filesystem::path &path, const std::string_view &reason) noexcept : std::runtime_error( fmt::format("Invalid RLE file '{}'. {}", path.string(), reason)) { } };