error.hpp 946 B

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