Fixing the type for the expected exception to match what is returned by the client proxy.