Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
addError(rc: ErrorCategory, code: HttpStatusCode | ClientErrorCode, result: Type) {
const key = this.getErrorKey(rc, code);
this.customComponentCaches[ViewType.Error].addType(key, result);
}
}