SA_Logger
Sapphire's Suite's C++ Logger.
Loading...
Searching...
No Matches
Exception_OutOfRange.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_OUT_OF_RANGE_GUARD
6#define SAPPHIRE_LOGGER_EXCEPTION_OUT_OF_RANGE_GUARD
7
9
20namespace SA
21{
28 {
29 public:
31 uint32_t currIndex = 0u;
32
34 uint32_t minBound = 0u;
35
37 uint32_t maxBound = 1u;
38
49 BaseInfo _info,
50 uint32_t _currIndex,
51 uint32_t _minBound,
52 uint32_t _maxBound,
53 std::wstring _msg
54 ) noexcept;
55
56
69 BaseInfo _info,
70 uint32_t _currIndex,
71 std::wstring _currIndexStr,
72 uint32_t _minBound,
73 std::wstring _minBoundStr,
74 uint32_t _maxBound,
75 std::wstring _maxBoundStr
76 ) noexcept;
77 };
78
79
81
83 #define __SA_CREATE_EXCEPTION_OutOfRange(_baseInfo, _currIndex, _minBound, _maxBound) SA::Exception_OutOfRange(\
84 _baseInfo,\
85 _currIndex,\
86 SA_WSTR(_currIndex),\
87 _minBound,\
88 SA_WSTR(_minBound),\
89 _maxBound,\
90 SA_WSTR(_maxBound)\
91 )
92
94}
95
104#endif // GUARD
Default Exception type implementation.
OutOfRange Exception type.
Definition Exception_OutOfRange.hpp:28
Exception_OutOfRange(BaseInfo _info, uint32_t _currIndex, std::wstring _currIndexStr, uint32_t _minBound, std::wstring _minBoundStr, uint32_t _maxBound, std::wstring _maxBoundStr) noexcept
uint32_t minBound
Minimum bound included.
Definition Exception_OutOfRange.hpp:34
uint32_t currIndex
Index used for access.
Definition Exception_OutOfRange.hpp:31
Exception_OutOfRange(BaseInfo _info, uint32_t _currIndex, uint32_t _minBound, uint32_t _maxBound, std::wstring _msg) noexcept
uint32_t maxBound
Maximum bound included.
Definition Exception_OutOfRange.hpp:37
Default (base) Exception type.
Definition Exception.hpp:24
Base exception create info.
Definition Exception.hpp:28