Arkulib
FloatTypeGivenException.hpp
Go to the documentation of this file.
1
9#pragma once
10
11#include <stdexcept>
12
13namespace Arkulib::Exceptions {
17 class FloatTypeGivenException : public std::invalid_argument {
18 public:
19 inline FloatTypeGivenException() : std::invalid_argument(
20 "The type given to a rational must not be a floating point.") {}
21 };
22}
An exception to handle Rational expressed in a non integer type.