diff options
author | Tim King <taking@cs.nyu.edu> | 2018-01-09 22:05:02 -0800 |
---|---|---|
committer | Andres Noetzli <andres.noetzli@gmail.com> | 2018-01-09 22:05:02 -0800 |
commit | 2e5cc613d280fab1be89d8360250cbc3a1635ac9 (patch) | |
tree | ced7d813eec67a32fd3f1b4a1174f5ff00ab1767 /src/theory/arith/delta_rational.cpp | |
parent | ff9d2c84dae5eb21a7ef77f5931673fb23129730 (diff) |
Cleaning up throw specifiers on Exception and subclasses. (#1475)
Diffstat (limited to 'src/theory/arith/delta_rational.cpp')
-rw-r--r-- | src/theory/arith/delta_rational.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/theory/arith/delta_rational.cpp b/src/theory/arith/delta_rational.cpp index 467f868a3..fba7fdaf6 100644 --- a/src/theory/arith/delta_rational.cpp +++ b/src/theory/arith/delta_rational.cpp @@ -72,16 +72,17 @@ void DeltaRational::seperatingDelta(Rational& res, const DeltaRational& a, const } } - -DeltaRationalException::DeltaRationalException(const char* op, const DeltaRational& a, const DeltaRational& b) throw (){ - std::stringstream ss; - ss << "Operation [" << op << "] between DeltaRational values "; - ss << a << " and " << b << " is not a DeltaRational."; - setMessage(ss.str()); +DeltaRationalException::DeltaRationalException(const char* op, + const DeltaRational& a, + const DeltaRational& b) +{ + std::stringstream ss; + ss << "Operation [" << op << "] between DeltaRational values "; + ss << a << " and " << b << " is not a DeltaRational."; + setMessage(ss.str()); } -DeltaRationalException::~DeltaRationalException() throw () { } - +DeltaRationalException::~DeltaRationalException() {} Integer DeltaRational::euclidianDivideQuotient(const DeltaRational& y) const throw(DeltaRationalException){ if(isIntegral() && y.isIntegral()){ |