initial commit
All checks were successful
Build (Arch Linux) / build (push) Successful in 3m10s

This commit is contained in:
2025-04-16 01:58:29 +01:00
commit a8d8b9b9ab
116 changed files with 106633 additions and 0 deletions

16
include/errors/errors.hpp Normal file
View File

@@ -0,0 +1,16 @@
#pragma once
#include <cstdint>
namespace kuiper
{
enum class error : std::uint8_t {
unknown,
failed_to_load,
resource_missing,
resource_invalid,
opengl_error
};
} // namespace kuiper

View File

@@ -0,0 +1,30 @@
#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