17
I've created a method that performs some validations against an XML Hierarchy that is dynamically generated by another Class in Javascript text during run time.
My method currently returns either True or False, which is helpful for anyone using my Class but I'd like to also return more informative information since there may be several reasons that can throw a False message.
At first I thought to change the return type from bool to some Generic Collection type having a String key and Boolean value I don't know if this is the best approach.
What is the Best Practice in this case?