Arkulib
NumberTooLargeException.hpp
Go to the documentation of this file.
1
9#pragma once
10
11#include <stdexcept>
12
13namespace Arkulib::Exceptions {
17 class NumberTooLargeException : public std::overflow_error {
18 public:
19 inline NumberTooLargeException() : std::overflow_error(
20 "The given integer type doesn't have the capacity to store the rational.") {}
21 };
22}
An exception to handle a rational who can't be expressed by the given type.