@ppwcode/ng-async
v19.0.2
Published
## Override default error extraction
Downloads
275
Keywords
Readme
@ppwcode/ng-async
Override default error extraction
The SDK comes with a default implementation to extract an error from a response. To override this, add an implementation for
window.ppwcodeHttpErrorExtractor
in your application's main.ts
file. For example:
window.ppwcodeHttpErrorExtractor = (response: HttpErrorResponse): Error => {
return new Error(response.statusText)
}