Following issue came up during a code review. when writing tests should we
throw individual Exception types [1] or should we just throw Exception
super class.

I though the best practice is to throw individual classes. But I got to
know that there is a common practice to throw Exception class in this case.
Is this correct. Should we follow the same?

[1]
https://github.com/wso2/product-ues/pull/25/files#diff-c64bcb3f71c33d2ce7a50ad8f39f6c38R41


-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : [email protected]
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to