SA_Logger
Sapphire's Suite's C++ Logger.
Loading...
Searching...
No Matches
Exception_ReachBadAPI.hpp
Go to the documentation of this file.
1// Copyright (c) 2023 Sapphire's Suite. All Rights Reserved.
2
3#pragma once
4
5#ifndef SAPPHIRE_LOGGER_EXCEPTION_REACH_BAD_API_GUARD
6#define SAPPHIRE_LOGGER_EXCEPTION_REACH_BAD_API_GUARD
7
9
20namespace SA
21{
24 {
25 public:
33 BaseInfo _info,
34 std::wstring _str
35 ) noexcept;
36 };
37
43
44
46
48 #define __SA_CREATE_EXCEPTION_ReachBadAPI(_baseInfo, _apiName) SA::Exception_ReachBadAPI(\
49 _baseInfo,\
50 L"Reach bad [" SA_WSTR(_apiName) L"] API call."\
51 )
52
54 #define __SA_CREATE_EXCEPTION_QueryBadAPIObject(_baseInfo, _apiName) SA::Exception_QueryBadAPIObject(\
55 _baseInfo,\
56 L"Query [" SA_WSTR(_apiName) L"] API handle from non-[" SA_WSTR(_apiName) L"] object!"\
57 )
58
60}
61
70#endif // SAPPHIRE_LOGGER_EXCEPTION_REACH_BAD_API_GUARD
Default Exception type implementation.
Definition Exception_ReachBadAPI.hpp:39
ReachBadAPI.
Definition Exception_ReachBadAPI.hpp:24
Exception_ReachBadAPI(BaseInfo _info, std::wstring _str) noexcept
Default (base) Exception type.
Definition Exception.hpp:24
Base exception create info.
Definition Exception.hpp:28