Remove use of deprecated getPossibleErrors (since 1.24)
Change-Id: I03385d1f239163c60f820cd9936ee384b37b9031