6#ifndef BI_INCLUDE_BI_EXCEPTIONS_HPP_
7#define BI_INCLUDE_BI_EXCEPTIONS_HPP_
10#ifdef __cpp_lib_source_location
11#include <source_location>
20#ifdef __cpp_lib_source_location
21 exception(
const std::string& message,
const std::source_location& location =
22 std::source_location::current());
24 explicit exception(
const std::string& message);
30 using exception::exception;
35 using exception::exception;
40 using exception::exception;
Throws if a division by zero attempt is detected.
Definition bi_exceptions.hpp:33
Base exception class for the bi library.
Definition bi_exceptions.hpp:18
Throws when attempting to convert a NaN or infinity to a bi_t.
Definition bi_exceptions.hpp:38
Throws if an operation expects the result to require a digit vector with size() exceeding max_size()....
Definition bi_exceptions.hpp:28