libcarla/include/system/boost/qvm/error.hpp
2024-10-18 13:19:59 +08:00

34 lines
632 B
C++

#ifndef BOOST_QVM_ERROR_HPP_INCLUDED
#define BOOST_QVM_ERROR_HPP_INCLUDED
// Copyright 2008-2022 Emil Dotchevski and Reverge Studios, Inc.
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <exception>
namespace boost { namespace qvm {
struct
error:
std::exception
{
char const *
what() const throw()
{
return "Boost QVM error";
}
~error() throw()
{
}
};
struct zero_determinant_error: error { };
struct zero_magnitude_error: error { };
} }
#endif