Narrow a ComplyTestControllerResponse to the ControllerError arm and
assert its error code. Throws an Error with a descriptive message when
the response is success-shaped or when the code does not match.
Returns the narrowed error so callers can make further assertions on
error_detail / current_state without re-casting.
Narrow a
ComplyTestControllerResponseto theControllerErrorarm and assert itserrorcode. Throws anErrorwith a descriptive message when the response is success-shaped or when the code does not match.Returns the narrowed error so callers can make further assertions on
error_detail/current_statewithout re-casting.