Throw if invocation is neither getter nor setter.