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