The errors to be explicitly ignored and not reported.
A dictionary of human-readable errors, grouped locales. Locales are referred using the locale id, provided by LOCALE_ID injection token, according to the angular i18n If there is no human-readable error, error.toString() will be shown.
Errors are reported only in the production
A service which provides a function to send the error report to the backend. Must implement ErrorsReporter abstract class
A service used to handle unhandled errors. The only method of this service is called, when an error is thrown anywhere in an Angular app, and not caught by the app. You may want to use it to show an error overlay, asking user to reload the page. Useful when building a finance application, where errors cannot be tolerated.
Can be used to extract non-translated information about error. Should handle null arguments, cos nothing is guaranteed.
the error response from the backend, detected by ErrorsConfig.isErrorResponse function.
Converts the error response from the backend into normalized error text, used as a key to get human-readable error from ErrorsConfig.errorsText. Should handle null arguments, cos nothing is guaranteed. If null argument is passed, you could just return 'undefined' string and add it to ErrorsConfig.errorsText.
the error response from the backend, detected by isErrorResponse function.
To detect, if a caught error is a response from the backend or a network or app error. The type of the error response depends on the backend. NOT used to detect, if a response is an error. Only applied to errors.
The error to be tested.
Generated using TypeDoc
Main configuration object. Describes how to detect, translate and report errors.