Function Path.Error
Error
()
Aborts the path because of an error.
Public
void Error ()
Aborts the path because of an error.
Sets error to true. This function is called when an error has occurred (e.g a valid path could not be found).