Pathfinding.Path.ErrorCheck C# (CSharp) Method

ErrorCheck() private method

private ErrorCheck ( ) : void
return void
		private void ErrorCheck () {
			if (!hasBeenReset) throw new System.Exception ("The path has never been reset. Use pooling API or call Reset() after creating the path with the default constructor.");
			if (recycled) throw new System.Exception ("The path is currently in a path pool. Are you sending the path for calculation twice?");
			if (pathHandler == null) throw new System.Exception ("Field pathHandler is not set. Please report this bug.");
			if (GetState() > PathState.Processing) throw new System.Exception ("This path has already been processed. Do not request a path with the same path object twice.");
		}