Add and implement Directory.HandleError()