1 //Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. 2 3 //Distributed under the Boost Software License, Version 1.0. (See accompanying 4 //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5 6 #ifndef UUID_92B1247AAE1111DE9655F2FC55D89593 7 #define UUID_92B1247AAE1111DE9655F2FC55D89593 8 9 #include "boost/exception/exception.hpp" 10 #include "boost/exception/error_info.hpp" 11 #include <exception> 12 13 namespace 14 boost 15 { 16 namespace 17 qvm 18 { 19 struct 20 error: 21 virtual boost::exception, 22 virtual std::exception 23 { 24 char const * whatboost::qvm::error25 what() const throw() override 26 { 27 return "Boost QVM error"; 28 } 29 ~errorboost::qvm::error30 ~error() throw() 31 { 32 } 33 }; 34 35 struct zero_determinant_error: virtual error { }; 36 struct zero_magnitude_error: virtual error { }; 37 } 38 } 39 40 #endif 41