712-varhandle-invocations: add some exception helper methods

Adds helpers for when exceptions are expected from VarHandle
accessor invocations.

Bug: 206407164
Test: art/test/run-test --host 712
Change-Id: I2d9775ddc97c5709c0d3eb6e2a1dec48432bf203
1 file changed