2018-03-13 22:49:08 +00:00
|
|
|
#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)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
};
|
2018-04-01 17:24:02 +00:00
|
|
|
|
|
|
|
struct InvalidArgument : std::invalid_argument
|
|
|
|
{
|
|
|
|
InvalidArgument(const std::string& message)
|
|
|
|
: std::invalid_argument(message)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
InvalidArgument(const char* message)
|
|
|
|
: std::invalid_argument(message)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
};
|
2018-03-13 22:49:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|