mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 05:46:48 +08:00
16 lines
488 B
C++
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
|