How to use the @nakedobjects/services.ErrorCategory.ClientError 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 / custom-component.service.ts View on Github external
private getErrorKey(rc: ErrorCategory, code: HttpStatusCode | ClientErrorCode) {
        const key = `${ErrorCategory[rc]}-${rc === ErrorCategory.ClientError ? ClientErrorCode[code] : HttpStatusCode[code]}`;
        return key;
    }