Melon
A C++ library designed for RadishOS.
Loading...
Searching...
No Matches
Melon::Exceptions::OutOfRange Class Reference

Thrown when an index is out of range. More...

#include <OutOfRange.hpp>

Inheritance diagram for Melon::Exceptions::OutOfRange:

Public Member Functions

 OutOfRange (Typing::USize index, Typing::USize highest_index)
 Main constructor for class OutOfRange.
const char * what () const noexcept

Detailed Description

Thrown when an index is out of range.

Constructor & Destructor Documentation

◆ OutOfRange()

Melon::Exceptions::OutOfRange::OutOfRange ( Typing::USize index,
Typing::USize highest_index )

Main constructor for class OutOfRange.

Parameters
indexindex out of range
highest_indexlimit of the array

Member Function Documentation

◆ what()

const char * Melon::Exceptions::OutOfRange::what ( ) const
noexcept
Returns
a formatted message describing the error

The documentation for this class was generated from the following files:
  • Include/Internal/Exceptions/OutOfRange.hpp
  • Source/Exceptions/OutOfRange.cpp