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

OutOfRange Exception type. More...

#include <Exception_OutOfRange.hpp>

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

Public Member Functions

 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.
 

Public Attributes

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

OutOfRange Exception type.

Exception will be thrown if curr is out of [min;max] range.

Constructor & Destructor Documentation

◆ Exception_OutOfRange() [1/2]

SA::Exception_OutOfRange::Exception_OutOfRange ( BaseInfo _info,
uint32_t _currIndex,
uint32_t _minBound,
uint32_t _maxBound,
std::wstring _msg )
noexcept

Value Message Constructor.

Parameters
[in]_infoBase create info.
[in]_currIndexIndex used for access.
[in]_minBoundMinimum bound allowed.
[in]_maxBoundMaximum bound allowed.
[in]_msgMessage to display on assertion.

◆ Exception_OutOfRange() [2/2]

SA::Exception_OutOfRange::Exception_OutOfRange ( BaseInfo _info,
uint32_t _currIndex,
std::wstring _currIndexStr,
uint32_t _minBound,
std::wstring _minBoundStr,
uint32_t _maxBound,
std::wstring _maxBoundStr )
noexcept

Full Value Constructor.

Parameters
[in]_infoBase create info.
[in]_currIndexIndex used for access.
[in]_currIndexStrIndex variable used for access, as a wstring.
[in]_minBoundMinimum bound allowed.
[in]_minBoundStrMin bound variable used for access, as a wstring.
[in]_maxBoundMaximum bound allowed.
[in]_maxBoundStrMax bound variable used for access, as a wstring.

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