Next / Previous / Contents / TCC Help System / NM Tech homepage

8. Exceptions

The GoalFound exception is used in Section 12.8, “Maze.__exitCheck(): Is there an open route to the goal from this cell?” to terminate the algorithm that checks to see if there is a path from a given cell to the goal cell.

# - - - - -   E x c e p t i o n s

class GoalFound(Exception):
    '''Used to signal termination of the search for the goal cell.