1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-28 00:15:06 +00:00
OpenMW/components/detournavigator/exceptions.hpp
2022-09-22 21:35:26 +03:00

34 lines
754 B
C++

#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_EXCEPTIONS_H
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_EXCEPTIONS_H
#include <stdexcept>
namespace DetourNavigator
{
struct NavigatorException : std::runtime_error
{
NavigatorException(const std::string& message)
: std::runtime_error(message)
{
}
NavigatorException(const char* message)
: std::runtime_error(message)
{
}
};
struct InvalidArgument : std::invalid_argument
{
InvalidArgument(const std::string& message)
: std::invalid_argument(message)
{
}
InvalidArgument(const char* message)
: std::invalid_argument(message)
{
}
};
}
#endif