1 #pragma once
2 // exceptions.hpp: exceptions for problems in IEEE float calculations
3 //
4 // Copyright (C) 2017-2018 Stillwater Supercomputing, Inc.
5 //
6 // This file is part of the universal numbers project, which is released under an MIT Open Source license.
7 
8 #include <exception>
9 #include <string>
10 
11 namespace sw {
12 	namespace ieee {
13 		struct divide_by_zero
14 			: std::runtime_error
15 		{
divide_by_zerosw::ieee::divide_by_zero16 			divide_by_zero(const std::string& error = "Divide by zero.") : std::runtime_error(error) {}
17 		};
18 
19 	} // namespace ieee
20 
21 } // namespace sw
22 
23