Normally when I create a service, that service is a singleton.
But how I declare a 'class' and make instances of it?
And where do I put them?
For example, I want to create three types of errors 'classes' and I want to create objects with them.
Thanks for the answer.