Probably you have limited access of your hosting server resources. Your hosting provider is not allowed more mysqli connections and when your class tries to get a new connection then you have got this error because of already you have some running mysqli connections.
This is not a mysqli problem or not a programming problem. This is limited access problem of hosting server.
For...