kuiper-engine/include/errors/exceptions.hpp
Adam Macdonald a8d8b9b9ab
All checks were successful
Build (Arch Linux) / build (push) Successful in 3m10s
initial commit
2025-04-16 01:58:29 +01:00

31 lines
624 B
C++

#pragma once
#include <exception>
#include <filesystem>
namespace kuiper
{
namespace exceptions
{
class file_not_found : public std::exception {
public:
file_not_found(const std::filesystem::path& path)
: m_path(path) {};
public:
inline std::filesystem::path path() const noexcept {
return m_path;
}
// Implementing std::exception
inline const char* what() const noexcept override {
return "file not found";
}
private:
std::filesystem::path m_path;
};
} // namespace exceptions
} // namespace kuiper