add expected_exceptions to rpc

Not quite; ``expected_exceptions`` is ``None`` if the provider supports it but there's no value provided.

I changed the ``getattr`` default to ``None``  though for consistency.