Remove use of deprecated getPossibleErrors (since 1.24)

Change-Id: I831bc0b6870744ff8c1b34c565b7362d05bb9499