Remove use of deprecated getPossibleErrors (since 1.24)

Change-Id: Ia541c83c98f64a188fbcd769b34f8de487ab4130
Merge "Remove use of deprecated getPossibleErrors (since 1.24)"