5#ifndef SAPPHIRE_LOGGER_EXCEPTION_OUT_OF_ARRAY_RANGE_GUARD
6#define SAPPHIRE_LOGGER_EXCEPTION_OUT_OF_ARRAY_RANGE_GUARD
44 std::wstring _currIndexStr,
46 std::wstring _arrayName = L
"",
47 uint32_t _minBound = 0,
48 uint32_t _maxBound = uint32_t(-1)
52 _minBound < static_cast<uint32_t>(_array.size()) ? _minBound : static_cast<uint32_t>(_array.size()) - 1,
53 _maxBound < static_cast<uint32_t>(_array.size()) ? _maxBound : static_cast<uint32_t>(_array.size()) - 1,
57 msg = L
"Index \'" + _currIndexStr + L
"\' [" +
ToWString(_currIndex) + L
"] must be in array \'" + _arrayName +
66 #define __SA_CREATE_EXCEPTION_OutOfArrayRange(_baseInfo, _currIndex, _array, ...) SA::Exception_OutOfArrayRange(\
OutOfRange Exception type implementation.
std::wstring ToWString(const Log &_log)
ToWString implementation for log.
OutOfArrayRange Exception type.
Definition Exception_OutOfArrayRange.hpp:28
Exception_OutOfArrayRange(BaseInfo _info, uint32_t _currIndex, std::wstring _currIndexStr, const U &_array, std::wstring _arrayName=L"", uint32_t _minBound=0, uint32_t _maxBound=uint32_t(-1)) noexcept
Definition Exception_OutOfArrayRange.hpp:42
OutOfRange Exception type.
Definition Exception_OutOfRange.hpp:28
uint32_t minBound
Minimum bound included.
Definition Exception_OutOfRange.hpp:34
uint32_t maxBound
Maximum bound included.
Definition Exception_OutOfRange.hpp:37
std::wstring msg
User string message.
Definition Log.hpp:37
Base exception create info.
Definition Exception.hpp:28