aboutsummaryrefslogtreecommitdiff
path: root/zencore/except.cpp
blob: b02122f58a417257c63cf2a03735d1812c7cf9b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright Epic Games, Inc. All Rights Reserved.

#include <zencore/except.h>

namespace zen {

void
ThrowSystemException([[maybe_unused]] HRESULT hRes, [[maybe_unused]] const char* Message)
{
	// TODO

	int ErrValue = hRes;

	throw std::system_error(ErrValue, std::system_category(), Message);
}

}  // namespace zen