diff options
Diffstat (limited to 'src/shader_recompiler/exception.h')
| -rw-r--r-- | src/shader_recompiler/exception.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shader_recompiler/exception.h b/src/shader_recompiler/exception.h index 43f08162d..337e7f0c8 100644 --- a/src/shader_recompiler/exception.h +++ b/src/shader_recompiler/exception.h | |||
| @@ -37,21 +37,21 @@ class LogicError : public Exception { | |||
| 37 | public: | 37 | public: |
| 38 | template <typename... Args> | 38 | template <typename... Args> |
| 39 | LogicError(const char* message, Args&&... args) | 39 | LogicError(const char* message, Args&&... args) |
| 40 | : Exception{fmt::format(message, std::forward<Args>(args)...)} {} | 40 | : Exception{fmt::format(fmt::runtime(message), std::forward<Args>(args)...)} {} |
| 41 | }; | 41 | }; |
| 42 | 42 | ||
| 43 | class RuntimeError : public Exception { | 43 | class RuntimeError : public Exception { |
| 44 | public: | 44 | public: |
| 45 | template <typename... Args> | 45 | template <typename... Args> |
| 46 | RuntimeError(const char* message, Args&&... args) | 46 | RuntimeError(const char* message, Args&&... args) |
| 47 | : Exception{fmt::format(message, std::forward<Args>(args)...)} {} | 47 | : Exception{fmt::format(fmt::runtime(message), std::forward<Args>(args)...)} {} |
| 48 | }; | 48 | }; |
| 49 | 49 | ||
| 50 | class NotImplementedException : public Exception { | 50 | class NotImplementedException : public Exception { |
| 51 | public: | 51 | public: |
| 52 | template <typename... Args> | 52 | template <typename... Args> |
| 53 | NotImplementedException(const char* message, Args&&... args) | 53 | NotImplementedException(const char* message, Args&&... args) |
| 54 | : Exception{fmt::format(message, std::forward<Args>(args)...)} { | 54 | : Exception{fmt::format(fmt::runtime(message), std::forward<Args>(args)...)} { |
| 55 | Append(" is not implemented"); | 55 | Append(" is not implemented"); |
| 56 | } | 56 | } |
| 57 | }; | 57 | }; |
| @@ -60,7 +60,7 @@ class InvalidArgument : public Exception { | |||
| 60 | public: | 60 | public: |
| 61 | template <typename... Args> | 61 | template <typename... Args> |
| 62 | InvalidArgument(const char* message, Args&&... args) | 62 | InvalidArgument(const char* message, Args&&... args) |
| 63 | : Exception{fmt::format(message, std::forward<Args>(args)...)} {} | 63 | : Exception{fmt::format(fmt::runtime(message), std::forward<Args>(args)...)} {} |
| 64 | }; | 64 | }; |
| 65 | 65 | ||
| 66 | } // namespace Shader | 66 | } // namespace Shader |