#ifndef __VK_EXCEPT_HPP #define __VK_EXCEPT_HPP #include "./vk.hpp" #include namespace vk { class error : public std::exception { public: static void try_code (VkResult); static void throw_code [[noreturn]] (VkResult); }; template class error_code : public error { public: const char* what (void) const noexcept override; }; } #endif