error.hpp 632 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef BOOST_QVM_ERROR_HPP_INCLUDED
  2. #define BOOST_QVM_ERROR_HPP_INCLUDED
  3. // Copyright 2008-2022 Emil Dotchevski and Reverge Studios, Inc.
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. #include <exception>
  7. namespace boost { namespace qvm {
  8. struct
  9. error:
  10. std::exception
  11. {
  12. char const *
  13. what() const throw()
  14. {
  15. return "Boost QVM error";
  16. }
  17. ~error() throw()
  18. {
  19. }
  20. };
  21. struct zero_determinant_error: error { };
  22. struct zero_magnitude_error: error { };
  23. } }
  24. #endif