linux-wallpaperengine/src/WallpaperEngine/Assets/AssetLoadException.h

16 lines
488 B
C++

#pragma once
#include <exception>
#include <string>
// TODO: REWRITE THIS ONE TO MAKE MORE SENSE, IT REALLY MEANS "FILE-RELATED EXCEPTION"
namespace WallpaperEngine::Render {
class AssetLoadException final : public std::exception {
public:
explicit AssetLoadException (const std::string& filename, const std::string& extrainfo = "");
[[nodiscard]] const char* what () const noexcept override;
private:
std::string m_message {};
};
} // namespace WallpaperEngine::Assets