mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-09 16:31:19 +12:00
Add all the files
This commit is contained in:
parent
e3db07a16a
commit
d60742f52b
1445 changed files with 430238 additions and 0 deletions
23
src/util/helpers/SystemException.h
Normal file
23
src/util/helpers/SystemException.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
#pragma once
|
||||
|
||||
#include "util/helpers/helpers.h"
|
||||
|
||||
class SystemException : public std::runtime_error
|
||||
{
|
||||
public:
|
||||
SystemException()
|
||||
: std::runtime_error(GetSystemErrorMessage().c_str()), m_error_code(GetExceptionError())
|
||||
{}
|
||||
|
||||
SystemException(const std::exception& ex)
|
||||
: std::runtime_error(GetSystemErrorMessage(ex).c_str()), m_error_code(GetExceptionError())
|
||||
{}
|
||||
|
||||
SystemException(const std::error_code& ec)
|
||||
: std::runtime_error(GetSystemErrorMessage(ec).c_str()), m_error_code(GetExceptionError())
|
||||
{}
|
||||
|
||||
[[nodiscard]] DWORD GetErrorCode() const { return m_error_code; }
|
||||
private:
|
||||
DWORD m_error_code;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue