2013-08-08 09:54:33 +00:00
|
|
|
/*=============================================================================
|
2014-01-08 07:48:12 +00:00
|
|
|
Copyright (c) 2011-2014 Bolero MURAKAMI
|
2013-08-08 09:54:33 +00:00
|
|
|
https://github.com/bolero-MURAKAMI/Sprout
|
|
|
|
|
|
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
=============================================================================*/
|
2012-08-28 16:16:12 +00:00
|
|
|
#ifndef SPROUT_RATIONAL_EXCEPTIONS_HPP
|
|
|
|
#define SPROUT_RATIONAL_EXCEPTIONS_HPP
|
|
|
|
|
|
|
|
#include <stdexcept>
|
|
|
|
#include <sprout/config.hpp>
|
|
|
|
|
|
|
|
namespace sprout {
|
|
|
|
//
|
|
|
|
// bad_rational
|
|
|
|
//
|
|
|
|
class bad_rational
|
|
|
|
: public std::domain_error
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit bad_rational()
|
|
|
|
: std::domain_error("bad rational: zero denominator")
|
|
|
|
{}
|
|
|
|
};
|
2013-03-22 05:24:19 +00:00
|
|
|
} // namespace sprout
|
2012-08-28 16:16:12 +00:00
|
|
|
|
2012-09-21 06:43:30 +00:00
|
|
|
#endif // SPROUT_RATIONAL_EXCEPTIONS_HPP
|