Added proxyClass name to error message