Remove use of deprecated getPossibleErrors (since 1.24)

Change-Id: Ic9cb104b9d5605483ae60eacb4e79c3961dcf8e8