Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Handling exception for sla #182

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,12 @@ private List<Inbox> parseInboxItemsFromSearchResponse(Object result, List<Busine
Inbox inbox = new Inbox();
Map<String, Object> businessObject = (Map<String, Object>) hit.get(SOURCE_KEY);
inbox.setBusinessObject((Map<String, Object>)businessObject.get(DATA_KEY));
Long serviceSla = getApplicationServiceSla(businessServiceSlaMap, stateUuidVsSlaMap, inbox.getBusinessObject());
inbox.getBusinessObject().put(SERVICESLA_KEY, serviceSla);
try {
Long serviceSla = getApplicationServiceSla(businessServiceSlaMap, stateUuidVsSlaMap, inbox.getBusinessObject());
inbox.getBusinessObject().put(SERVICESLA_KEY, serviceSla);
} catch (Exception exception) {
log.warn("Exception occurred in SLA calculation: {}", exception.getMessage());
}
inboxItemList.add(inbox);
});
return inboxItemList;
Expand Down