YK
private handleFailure(error) {
if (error.error['business-exception-type'] === BusinessExceptionTypes.CANNOT_PUBLISH_COMPETENCE_SET_WHEN_KNOW_HOW_IS_NOT_PUBLISHED) {
this.notificationsService.error('portal.competence-catalog.competence-sets.error-message.cannot_publish_competence_set_when_know_how_is_not_published');
return EMPTY;
}
if (error.error['business-exception-type'] === BusinessExceptionTypes.CANNOT_PUBLISH_DRAFT) {
this.notificationsService.error('portal.competence-catalog.error-message.cannot_publish_draft');
return EMPTY;
}
return throwError(error);
}