jak-project/decompiler/util/Error.h

13 lines
288 B
C++

#pragma once
#include <stdexcept>
#include "fmt/core.h"
class Error : public std::runtime_error {
public:
template <typename... Args>
Error(const std::string& format, Args&&... args)
: std::runtime_error(fmt::format(fmt::runtime(format), std::forward<Args>(args)...)) {}
};