Wednesday, 13 November 2019

What's the best way to go about writing an ErrorFactory?

I am instantiating an ErrorFactory every time there's an error with the constructor and then building an error object with one of its function, but I am wondering if I should use a singleton and then just use one of its function to return an error object instead. What's the best solution? Could you show an example?

Submitted November 14, 2019 at 01:42AM by jesusscript

No comments:

Post a Comment