Remove use of deprecated getPossibleErrors (since 1.24)

Change-Id: I517b5a5fc50e5416d53de36f4dce184f51f270ba
Merge "Remove use of deprecated getPossibleErrors (since 1.24)"