Remove use of deprecated getPossibleErrors (since 1.24)

Change-Id: I79223c98b72ac984845fcb990a1f5406ed5726f2