12#ifndef Q_HEX_WALKER_PATHFINDING_ERRORS_H
13#define Q_HEX_WALKER_PATHFINDING_ERRORS_H
47 return "Invalid H3 cell index";
49 return "Start and end points are identical";
51 return "Start cell is blocked";
53 return "End cell is blocked";
55 return "No path found between points";
57 return "Error converting between H3 resolutions";
59 return "Error getting cell coordinates";
61 return "Search exceeded maximum iterations";
63 return "Internal algorithm error";
65 return "Unknown error";
Exception class for pathfinding errors.
PathfindingError errorCode() const noexcept
PathfindingError errorCode_
PathfindingException(const PathfindingError error)
PathfindingError
Error codes for pathfinding operations.
@ ConversionError
Error converting between H3 resolutions.
@ BlockedEndCell
End cell is blocked by an obstacle.
@ InternalError
Internal algorithm error.
@ MaxIterations
Search exceeded maximum iteration limit.
@ BlockedStartCell
Start cell is blocked by an obstacle.
@ NoPathFound
No path exists between start and end (disconnected graph)
@ SameStartEnd
Start and end points are identical.
@ CoordinateError
Error getting cell coordinates.
@ InvalidCell
One or both cells are invalid (H3_NULL or failed isValidCell)
std::string pathfindingErrorToString(const PathfindingError error)
Converts PathfindingError to human-readable string.