Program Listing for File exception.hpp

Return to documentation for file (inexor/vulkan-renderer/tools/exception.hpp)

#pragma once

#include <volk.h>

#include <source_location>
#include <stdexcept>
#include <string>

namespace inexor::vulkan_renderer::tools {

class InexorException : public std::runtime_error {
public:
    InexorException(std::string message, std::source_location location = std::source_location::current());
};

class VulkanException final : public InexorException {
public:
    VulkanException(std::string message, VkResult result, std::string object_name = "",
                    std::source_location location = std::source_location::current());
};

} // namespace inexor::vulkan_renderer::tools