added exception message for ProxyFactory