Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:51:03

0001 #ifndef BOOST_QVM_ERROR_HPP_INCLUDED
0002 #define BOOST_QVM_ERROR_HPP_INCLUDED
0003 
0004 // Copyright 2008-2022 Emil Dotchevski and Reverge Studios, Inc.
0005 
0006 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0007 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0008 
0009 #include <exception>
0010 
0011 namespace boost { namespace qvm {
0012 
0013 struct
0014 error:
0015     std::exception
0016     {
0017     char const *
0018     what() const throw()
0019         {
0020         return "Boost QVM error";
0021         }
0022 
0023     ~error() throw()
0024         {
0025         }
0026     };
0027 
0028 struct zero_determinant_error: error { };
0029 struct zero_magnitude_error: error { };
0030 
0031 } }
0032 
0033 #endif