Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.catch((reject: ErrorWrapper) => {
if (reject.category === ErrorCategory.ClientError && reject.clientErrorCode === ClientErrorCode.ExpiredTransient) {
this.context.setError(reject);
this.expiredTransient = true;
} else {
this.error.handleError(reject);
}
});
}
catch((reject: ErrorWrapper) => {
if (reject.category === ErrorCategory.ClientError && reject.clientErrorCode === ClientErrorCode.ExpiredTransient) {
this.outputText = 'The requested view of unsaved object details has expired.';
} else {
const display = (em: Ro.ErrorMap) => this.outputText = em.invalidReason() || em.warningMessage;
this.error.handleErrorAndDisplayMessages(reject, display);
}
});
}