Remove use of deprecated getPossibleErrors (since 1.24)

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