SA_Logger
Sapphire's Suite's C++ Logger.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SA::Exception_OutOfArrayRange Class Reference

OutOfArrayRange Exception type. More...

#include <Exception_OutOfArrayRange.hpp>

Inheritance diagram for SA::Exception_OutOfArrayRange:
SA::Exception_OutOfRange SA::Exception SA::Log

Public Member Functions

template<typename U >
 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
 
- Public Member Functions inherited from SA::Exception_OutOfRange
 Exception_OutOfRange (BaseInfo _info, uint32_t _currIndex, uint32_t _minBound, uint32_t _maxBound, std::wstring _msg) noexcept
 
 Exception_OutOfRange (BaseInfo _info, uint32_t _currIndex, std::wstring _currIndexStr, uint32_t _minBound, std::wstring _minBoundStr, uint32_t _maxBound, std::wstring _maxBoundStr) noexcept
 
- Public Member Functions inherited from SA::Exception
 Exception (BaseInfo _info, bool _pred, std::wstring _msg=L"") noexcept
 
- Public Member Functions inherited from SA::Log
 Log ()=default
 Default constructor.
 
 Log (std::wstring _file, uint32_t _line, std::string _function, std::wstring _msg=L"Hello, World!", LogLevel _level=LogLevel::Normal, std::wstring _chanName=L"Default", std::wstring _details=L"", uint32_t _frameNum=0u, std::string _backtrace="") noexcept
 Value Move Constructor.
 

Additional Inherited Members

- Public Attributes inherited from SA::Exception_OutOfRange
uint32_t currIndex = 0u
 Index used for access.
 
uint32_t minBound = 0u
 Minimum bound included.
 
uint32_t maxBound = 1u
 Maximum bound included.
 
- Public Attributes inherited from SA::Log
std::wstring file
 File name.
 
uint32_t line = 0u
 Line number.
 
std::string function
 Function name.
 
std::wstring msg = L"Hello, World!"
 User string message.
 
LogLevel level = LogLevel::Normal
 Output level.
 
std::wstring chanName = L"Default"
 Output channel name.
 
std::wstring details
 Additional details string.
 
uint32_t frameNum = 0u
 Frame number.
 
std::string backtrace
 backtracing of logging call.
 
DateTime date
 Date time.
 

Detailed Description

OutOfArrayRange Exception type.

Exception will be thrown if curr is out of [0u;_array.size()[ range.

Constructor & Destructor Documentation

◆ Exception_OutOfArrayRange()

template<typename U >
SA::Exception_OutOfArrayRange::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) )
inlinenoexcept

Value with bound Constructor.

Parameters
[in]_infoBase create info.
[in]_currIndexIndex used for access.
[in]_currIndexStrIndex variable used for access, as a wstring.
[in]_arrayArray to check bounds with.
[in]_arrayNameArray variable to access, as a wstring.
[in]_minBoundOptionnal array min bound
[in]_maxBoundoptionnal array max bound

The documentation for this class was generated from the following file: