Remove use of deprecated getPossibleErrors (since 1.24)

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