Files

30 lines
818 B
C++
Raw Permalink Normal View History

2024-06-25 18:59:15 +02:00
// AUTOGENERATED COPYRIGHT HEADER START
// Copyright (C) 2024-2025 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
2024-06-25 18:59:15 +02:00
// AUTOGENERATED COPYRIGHT HEADER END
2024-06-26 00:31:06 +02:00
#pragma once
#include <cinttypes>
#include <filesystem>
#include <stdexcept>
#include <string>
#include <utility>
namespace blitz {
class error : public std::runtime_error {
std::filesystem::path _file;
std::pair<uint64_t, uint64_t> _base;
std::pair<uint64_t, uint64_t> _at;
public:
~error();
error(std::filesystem::path file, std::pair<uint64_t, uint64_t> base, std::pair<uint64_t, uint64_t> at, std::string reason);
std::filesystem::path const& file() const;
std::pair<uint64_t, uint64_t> const& base() const;
std::pair<uint64_t, uint64_t> const& at() const;
};
2025-01-25 16:27:50 +01:00
std::string format(const char* format, ...);
2024-06-26 00:31:06 +02:00
} // namespace blitz