1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 00:32:49 +00:00

34 lines
754 B
C++
Raw Normal View History

2018-03-14 01:49:08 +03:00
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_EXCEPTIONS_H
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_EXCEPTIONS_H
#include <stdexcept>
namespace DetourNavigator
{
struct NavigatorException : std::runtime_error
{
2022-09-22 21:26:05 +03:00
NavigatorException(const std::string& message)
: std::runtime_error(message)
{
}
NavigatorException(const char* message)
: std::runtime_error(message)
{
}
2018-03-14 01:49:08 +03:00
};
struct InvalidArgument : std::invalid_argument
{
2022-09-22 21:26:05 +03:00
InvalidArgument(const std::string& message)
: std::invalid_argument(message)
{
}
InvalidArgument(const char* message)
: std::invalid_argument(message)
{
}
};
2018-03-14 01:49:08 +03:00
}
#endif