How to use the @nakedobjects/services.ClientErrorCode.ExpiredTransient function in @nakedobjects/services

To help you get started, we’ve selected a few @nakedobjects/services examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NakedObjectsGroup / NakedObjectsFramework / Spa2 / nakedobjectsspa / gemini / src / object / object.component.ts View on Github external
.catch((reject: ErrorWrapper) => {
                    if (reject.category === ErrorCategory.ClientError && reject.clientErrorCode === ClientErrorCode.ExpiredTransient) {
                        this.context.setError(reject);
                        this.expiredTransient = true;
                    } else {
                        this.error.handleError(reject);
                    }
                });
        }
github NakedObjectsGroup / NakedObjectsFramework / Spa2 / nakedobjectsspa / cicero / src / cicero / cicero.component.ts View on Github external
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);
                                    }
                                });
                        }