1 /*
2   This code is based on code from the Geometric Tools library,
3   which is licensed under a boost license.
4   Such usage is permitted by the boost license; for details,
5   please see the boost license below.
6 */
7 
8 // Geometric Tools, LLC
9 // Copyright (c) 1998-2014
10 // Distributed under the Boost Software License, Version 1.0.
11 // http://www.boost.org/LICENSE_1_0.txt
12 // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
13 
14 /*************************************************************************
15  *                                                                       *
16  * We release our improvements to the wildMagic code under our standard  *
17  * Vega FEM license, as follows:                                         *
18  *                                                                       *
19  * Vega FEM Simulation Library Version 3.1                               *
20  *                                                                       *
21  * "improvements to the wildMagic library" , Copyright (C) 2016 USC      *
22  * All rights reserved.                                                  *
23  *                                                                       *
24  * Code author: Yijing Li                                                *
25  * http://www.jernejbarbic.com/code                                      *
26  *                                                                       *
27  * Funding: National Science Foundation                                  *
28  *                                                                       *
29  * This library is free software; you can redistribute it and/or         *
30  * modify it under the terms of the BSD-style license that is            *
31  * included with this library in the file LICENSE.txt                    *
32  *                                                                       *
33  * This library is distributed in the hope that it will be useful,       *
34  * but WITHOUT ANY WARRANTY; without even the implied warranty of        *
35  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file     *
36  * LICENSE.TXT for more details.                                         *
37  *                                                                       *
38  *************************************************************************/
39 
40 
41 #include "rational.h"
42 
RationalException(const char * reason)43 RationalException::RationalException(const char * reason) : r(reason) {}
RationalException(const std::string & reason)44 RationalException::RationalException(const std::string & reason) : r(reason) {}
~RationalException()45 RationalException::~RationalException() throw() {}
what() const46 const char * RationalException::what() const throw() { return r.c_str(); }
47