Remove use of deprecated getPossibleErrors (since 1.24)

Change-Id: I80146eed7bd3d1d16d7a1665ba5f6bb93cf87051