Implement possible exceptions for specific RPC errors.