use of org.apache.isis.applib.services.wrapper.HiddenException in project estatio by estatio.
the class InvoiceSummaryAbstract method validate0InvoiceAll.
public String validate0InvoiceAll(final LocalDate invoiceDate) {
for (Invoice invoice : getInvoices()) {
try {
final InvoiceForLease._invoice mixin = mixin(InvoiceForLease._invoice.class, invoice);
wrapperFactory.wrapNoExecute(mixin).$$(invoiceDate);
} catch (InvalidException ex) {
final String reasonMessage = ex.getInteractionEvent() != null ? ex.getInteractionEvent().getReason() : null;
return titleService.titleOf(invoice) + ": " + (reasonMessage != null ? reasonMessage : ex.getMessage());
} catch (HiddenException | DisabledException ex) {
// ignore
}
}
return null;
}
Aggregations