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 Handle400WithValidations decorator, now correctly registers custom handler for 400 http status code
Features
now also typings are available for external usage
new readErrorsFromHttpErrorResponse function, that reads errors and validation errors from http error response
new HttpClientErrors interface, which represents definition of http client errors read from http error response
properties
errors array of error
validationErrors object storing validation errors
new HttpClientError interface, which represents http client error, containing extracted errors and original
extends
HttpClientErrors
properties
httpResponse original http error response
new handle4xxSuppress rxjs operator, that handles http error response with code 400..499 as response and never returns
new handle404Suppress rxjs operator, that handles 404 http code as response and never returns
updated handle404 rxjs operator function
new parameter options containing injector and mapper function for extraction of error messages
subpackage@anglr/error-handling/rest
new ClientErrorHandlingBehavior enum, which represents behavior for client error handling
values
Suppress result of http request with client error is handled by handler but observable never finishes
PassThrough result of http request with client error is handled by handler and extracted errors passes through to observable
PassThroughHttp result of http request with client error is handled by handler and extracted errors passes through to observable with original http error
RestClientError result of http request with client error is handled by handler and observable returns instance of RestClientError or its descendants
new ClientErrorHandlingOptions class, which represents options for client error handling
properties
behavior behavior of client error handling
defaultHandler default error handler to be used if no other configured handler was found
defaultClientError default factory for obtaining RestClientError
defaultClientValidationError default factory for obtaining ClientValidationError
new CLIENT_ERROR_HANDLING_MIDDLEWARE_OPTIONS injection token for global client error handling middleware options
new getDefaultClientErrorObservable function which, gets observable for error according specified behavior
new HttpClientErrorCustomHandlerDef type, that represents definition of http client error custom handler types
new ErrorPassThrough decorator, which changes behavior of ClientErrorHandlingMiddleware to pass through errors
new ErrorPassThroughHttp decorator, which changes behavior of ClientErrorHandlingMiddleware to pass through errors and http error response
new SuppressError decorator, which changes behavior of ClientErrorHandlingMiddleware to suppress errors
new WithRestClientError decorator, which changes behavior of ClientErrorHandlingMiddleware to rest client error
new getErrorHandlers function, which gets error handler functions to be used for handling errors