mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
11 lines
284 B
C
11 lines
284 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(format, std::forward<Args>(args)...)) {}
|
||
|
};
|