Remove use of deprecated getPossibleErrors (since 1.24)

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