|
qHexWalker 0.0.1
Hexagonal Grid Pathfinding & Maze Visualization on Interactive Maps
|
Error handling strategy for pathfinding algorithms. More...
#include <stdexcept>#include <string>
Include dependency graph for pathfindingErrors.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | PathfindingException |
| Exception class for pathfinding errors. More... | |
Enumerations | |
| enum class | PathfindingError { None = 0 , InvalidCell , SameStartEnd , BlockedStartCell , BlockedEndCell , NoPathFound , ConversionError , CoordinateError , MaxIterations , InternalError } |
| Error codes for pathfinding operations. More... | |
Functions | |
| std::string | pathfindingErrorToString (const PathfindingError error) |
| Converts PathfindingError to human-readable string. | |
Error handling strategy for pathfinding algorithms.
This file defines a consistent error handling approach across all pathfinding algorithms in the project.
Definition in file pathfindingErrors.h.
|
strong |
Error codes for pathfinding operations.
Consistent error codes across all pathfinding algorithms (A*, Dijkstra, etc.)
Definition at line 24 of file pathfindingErrors.h.
|
inline |
Converts PathfindingError to human-readable string.
| error | The error code |
Definition at line 42 of file pathfindingErrors.h.
References BlockedEndCell, BlockedStartCell, ConversionError, CoordinateError, InternalError, InvalidCell, MaxIterations, None, NoPathFound, and SameStartEnd.