Remove use of deprecated getPossibleErrors (since 1.24)

Change-Id: I111286a0d351287194cb0e7d7ada9274ac265749