Arkulib
include
Exceptions
DivideByZeroException.hpp
Go to the documentation of this file.
1
9
#pragma once
10
11
#include <stdexcept>
12
13
namespace
Arkulib::Exceptions
{
17
class
DivideByZeroException
:
public
std::runtime_error {
18
public
:
19
inline
DivideByZeroException
() : std::runtime_error(
"Denominator must not be null"
) {}
20
};
21
}
Arkulib::Exceptions::DivideByZeroException
An exception to handle divide by 0.
Definition:
DivideByZeroException.hpp:17
Arkulib::Exceptions::DivideByZeroException::DivideByZeroException
DivideByZeroException()
Definition:
DivideByZeroException.hpp:19
Arkulib::Exceptions
Definition:
DigitsTooLargeException.hpp:13
Generated by
1.9.5