Hi Manuranga,

We have discussed the subject in the mail thread "Best Practice in Throwing
Exceptions in test methods signature"@d...@wso2.com as well. You can get
some information from the thread.

Thanks,
Nuwanw

On Tue, Oct 6, 2015 at 12:01 PM, Manuranga Perera <m...@wso2.com> wrote:

> 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 : m...@wso2.com
>



-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to