Best pratice to construct a CustomException with a custom message
I have a CustomException class that inherits from Exception, so I’m trying to understand the best practices to construct such an object. This exception would need to construct its own exception message based on the error code it receives, this is what I have so far