How to use the @nakedobjects/services.ViewType.Error 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
addError(rc: ErrorCategory, code: HttpStatusCode | ClientErrorCode, result: Type) {
        const key = this.getErrorKey(rc, code);
        this.customComponentCaches[ViewType.Error].addType(key, result);
    }
}