This package provides a comprehensive error handling solution for Angular applications, including interceptors, services, and UI components to display different types of errors in a user-friendly dialog. It supports handling of generic errors, HTTP errors with messages or codes, and OpenAPI HTTP response errors, with customizable options for logging, displaying dialogs, and integrating with Sentry. The package aims to simplify error management and improve the user experience by providing clear and informative error messages.
Add the package to your workspace:
yarn add @rxap/ngx-error
Install peer dependencies:
yarn add @angular/cdk @angular/common @angular/core @rxap/components @rxap/config @rxap/data-grid @rxap/environment @rxap/open-api @sentry/angular rxjs
Execute the init generator:
yarn nx g @rxap/ngx-error:init
Initialize the package in the workspace
nx g @rxap/ngx-error:init