SA_Logger
Sapphire's Suite's C++ Logger.
Loading...
Searching...
No Matches
Exception_Equals1.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_EQUALS_1_GUARD
6#define SAPPHIRE_LOGGER_EXCEPTION_EQUALS_1_GUARD
7
9
20namespace SA
21{
24 {
25 public:
35 template <typename T>
37 BaseInfo _info,
38 const T& _lhs,
39 std::wstring _predStr = L"pred"
40 ) noexcept :
42 std::move(_info),
43 _lhs,
44 T(1),
45 std::move(_predStr))
46 {
47 }
48 };
49
51
53 #define __SA_CREATE_EXCEPTION_Equals1(_baseInfo, _lhs) SA::Exception_Equals1(\
54 _baseInfo,\
55 _lhs,\
56 SA_WSTR(_lhs) L" == " + SA::ToWString(typeid(_lhs).name()) + L"(1)"\
57 )
58
60}
61
70#endif // GUARD
Equals Exception base type implementation.
Equals 1 exception implementation.
Definition Exception_Equals1.hpp:24
Exception_Equals1(BaseInfo _info, const T &_lhs, std::wstring _predStr=L"pred") noexcept
Definition Exception_Equals1.hpp:36
Equals exception base type.
Definition Exception_Equals.hpp:24
Exception_Equals(BaseInfo _info, const T &_lhs, const T &_rhs, std::wstring _predStr=L"pred") noexcept
Definition Exception_Equals.hpp:39
Base exception create info.
Definition Exception.hpp:28