AccountService accountServiceLambda = () -> {
Account account = new Account();
accountService.save(account);
}
In the above lambda expression, how can I declare throws AccountServiceException like below ?
public void createAccount() throws AccountServiceException {
Account account = new Account();
accountService.save(account);
}