JujaLabs/itevents

Refactor exception handling

Opened this issue · 3 comments

Begin is in class MailBuilderUtil in BuildXmlFromUserOtp(User user, OneTimePassword oneTimePassword) method. Exception 'java.io.IOException' is never thrown in the method.

Then move by methods usages chain. Whenever you see throws Exception it need to refactor code. Exception is too broad, masking specific exceptions.

@AndriyBaibak time spent: 3h

@romach @vaa25 @alex-anakin also i removed antipatterns that discribed here
https://community.oracle.com/docs/DOC-983543

@AndriyBaibak time spent: 1h