Files
Towards/external/loft/modules/base/include/LoftException.hpp
Martin Slachta a04f0dc262 initial
2026-07-18 14:31:15 +02:00

21 lines
325 B
C++

#pragma once
#include <exception>
#include <string>
namespace lft {
class GpuException : public std::exception {
std::string m_reason;
public:
GpuException(const std::string& reason) : m_reason(reason) {
}
virtual const char* what() const noexcept override {
return m_reason.c_str();
}
};
}