Melon
A C++ library designed for RadishOS.
Loading...
Searching...
No Matches
OutOfRange.hpp
1#pragma once
2
3#include "../../Typing.hpp"
4
5#include <exception>
6
7namespace Melon::Exceptions
8{
10 class OutOfRange : public std::exception
11 {
12 Typing::USize index;
13 Typing::USize highest_index;
14
15 public:
19 OutOfRange(Typing::USize index, Typing::USize highest_index);
20
22 const char *what() const noexcept;
23 };
24} // namespace Melon::Exceptions
const char * what() const noexcept
Definition OutOfRange.cpp:12
OutOfRange(Typing::USize index, Typing::USize highest_index)
Main constructor for class OutOfRange.
Definition OutOfRange.cpp:8
Contains custom exceptions.
Definition Exceptions.hpp:8
size_t USize
Biggest unsigned type.
Definition Typing.hpp:38