Catch multiple exceptions in REST views
Change-Id: I62eb25317656758b4b21ca68261edb70392c9458
This commit is contained in:
@@ -124,10 +124,7 @@ public class CreateEmail implements RestModifyView<AccountResource, Input> {
|
||||
try {
|
||||
registerNewEmailFactory.create(email).send();
|
||||
info.pendingConfirmation = true;
|
||||
} catch (EmailException e) {
|
||||
log.error("Cannot send email verification message to " + email, e);
|
||||
throw e;
|
||||
} catch (RuntimeException e) {
|
||||
} catch (EmailException | RuntimeException e) {
|
||||
log.error("Cannot send email verification message to " + email, e);
|
||||
throw e;
|
||||
}
|
||||
|
Reference in New Issue
Block a user