Remove use of deprecated getPossibleErrors (since 1.24)

Change-Id: Ib9ef665ff7c1e980fc5e3cb51a9e1c5c9f2fa260