You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixed package.json default export for material subpackage
Features
new HttpClientErrorHandlers type, that is object storing error handlers for http client errors according status code
new HttpClientErrorMessages type, that is object storing error messages for http client errors according status code
new provideAnglrExceptionExtenders function, that provides anglr exception extends functions
new provideInternalServerErrorRenderer function, that provides internal server error renderer type
new DummyInternalServerErrorRenderer service, that is dummy renderer used for displaying/rendering internal server error
new handleHttpClientErrorResponse function, that handles http error response with code 400..499 and returns HttpClientError, otherwise returns original http error response
new handleHttpClientErrors function, that handles http client errors according provided options
new handleHttp404Error function, that is custom handler for http 404 status codes
new applyBehavior function, that gets result of catch http client error according provided behavior
new provideHttpClientErrorMessages function, that provides http client error messages and merges them with existing provided messages
new provideHttpClientErrorHandlers function, that provides http client error handlers and merges them with existing provided handlers
new provideHttpClientErrorResponseMapper function, that provides http client error response mapper function
new provideHttpClientValidationErrorResponseMapper function, that provides http client validation error response mapper function
new processHttpClientErrorResponse rxjs operator, that processes http client error response with code 400..499 and converts it into HttpClientError, otherwise throw original http error response
new catchHttpClientError rxjs operator, that catches http client errors and handles them according provided options
new CatchHttpClientErrorBehavior enum, that is enumeration of available behavior for catch http client error
Suppress error is processed, but observable never completes
PassThrogh httpClientError object is returned as result of observable
Throw httpClientError object is 'thrown' as error from observable
new CatchHttpClientErrorOptions interface, that represents options for catch http client errors
properties
injector instance of injector used for obtaining dependencies
behavior behavior of catch http client error, default is CatchHttpClientErrorBehavior.Suppress
skipErrorNotifications indication whether skip displaying of notifications for errors
skipServerValidationErrors indication whether skip server validation errors processing
forceCustomMessageDisplay indication whether forcibly display custom message if present, not only as fallback but always
messages object storing default messages to be displayed for specific http status codes
handlers object storing default error handlers for specific http status codes
new HttpClientErrorHandler interface, that represents function that is used for handling http client error according status code
new HttpClientErrorOptions interface, that represents options used for common handling of client errors
properties
injector injector used for obtaining dependencies
clientErrorsResponseMapper response mapper for http client errors
clientValidationErrorsResponseMapper response mapper for http client validation errors
ignoredHttpStatusCodes array of ignored http status codes that will not be processed
new HttpClientError class, that represents information about http client error (400..499)
properties
errors array of processed client errors
validationErrors object storing server valiation errors
statusCode http status code
message http error response message
response complete http error response object
new HttpNotFoundError class, that represents information about http not found error (404)
new HTTP_IGNORED_CLIENT_ERRORS injection token, that contains array of http status codes that are ignored
new HTTP_CLIENT_ERROR_MESSAGES injection token that contains custom client error messages
new HTTP_CLIENT_ERROR_HANDLERS injection token that contains custom client error handlers
updated InternalServerErrorSAComponent component
is now standalone
updated HttpClientErrorResponseMapper type, return type is now PromiseOr, supports async usage
updated HttpClientValidationErrorResponseMapper type, return type is now PromiseOr, supports async usage
subpackage@anglr/error-handling/rest
new HttpClientErrorProcessingMiddleware middleware, that is used for processing http client errors (400..499)
new CatchHttpClientErrorMiddleware middleware, that catches http client error and handles according options
new HttpClientErrorsMapper decorator, that sets custom http client errors mapper function
new HttpClientValidationErrorsMapper decorator, that sets custom http client validation errors mapper function
new IgnoredHttpErrorStatusCodes decorator, that sets ignored http error status codes that will be ignored by http client error processing middleware
new HttpClientErrorMessages decorator, that sets http client error messages
new HttpClientErrorHandlers decorator, that sets http client error handlers
new HttpClientErrorBehavior decorator, that sets http client error behavior
new HttpClientErrorForceCustomMessage decorator, that sets http client error to force custom message displaying
new HttpClientErrorSkipErrorNotifications decorator, that sets http client error to skip error notifications
new HttpClientErrorSkipServerValidationErrors decorator, that sets http client error to skip server validation errors
new RestHttpClientErrorProcessing interface, configuration that can be used within http client error processing middleware
properties
clientErrorsResponseMapper response mapper for http client errors
clientValidationErrorsResponseMapper response mapper for http client validation errors
ignoredHttpStatusCodes array of ignored http status codes that will not be processed
new RestCatchHttpClientError interface, configuration that can be used within catch http client error middleware
properties
behavior behavior of catch http client error, default is CatchHttpClientErrorBehavior.Suppress
skipErrorNotifications indication whether skip displaying of notifications for errors
skipServerValidationErrors indication whether skip server validation errors processing
forceCustomMessageDisplay indication whether forcibly display custom message if present, not only as fallback but always
messages object storing default messages to be displayed for specific http status codes
handlers object storing default error handlers for specific http status codes