mirror of
https://github.com/open-goal/jak-project
synced 2026-05-25 23:35:33 -04:00
4afefc5a82
Just putting this here for consideration, I'm personally not in a big rush to get it. --------- Co-authored-by: Tyler Wilding <xtvaser@gmail.com>
13 lines
300 B
C++
13 lines
300 B
C++
#pragma once
|
|
|
|
#include <stdexcept>
|
|
|
|
#include "third-party/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)...)) {}
|
|
};
|