UNPKG

@rxap/ngx-error

Version:

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

128 lines (64 loc) 4.27 kB
[@rxap/ngx-error](../wiki/globals) / AnyHttpErrorDialogData # Interface: AnyHttpErrorDialogData Defined in: [any-http-error/any-http-error-dialog-data.ts:6](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L6) ## Extended by - [`OpenApiHttpResponseErrorDialogData`](../wiki/Interface.OpenApiHttpResponseErrorDialogData) ## Properties ### body? > `optional` **body**: `any` Defined in: [any-http-error/any-http-error-dialog-data.ts:8](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L8) *** ### error > **error**: `any` Defined in: [any-http-error/any-http-error-dialog-data.ts:10](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L10) *** ### headers > **headers**: `Record`\<`string`, `string`[]\> Defined in: [any-http-error/any-http-error-dialog-data.ts:17](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L17) All response headers. *** ### message > **message**: `string` Defined in: [any-http-error/any-http-error-dialog-data.ts:11](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L11) *** ### method > **method**: `string` Defined in: [any-http-error/any-http-error-dialog-data.ts:7](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L7) *** ### name > **name**: `string` Defined in: [any-http-error/any-http-error-dialog-data.ts:12](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L12) *** ### ok > **ok**: `boolean` Defined in: [any-http-error/any-http-error-dialog-data.ts:35](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L35) Whether the status code falls in the 2xx range. *** ### stack? > `optional` **stack**: `string` Defined in: [any-http-error/any-http-error-dialog-data.ts:9](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L9) *** ### status > **status**: `number` Defined in: [any-http-error/any-http-error-dialog-data.ts:21](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L21) Response status code. *** ### statusText > **statusText**: `string` Defined in: [any-http-error/any-http-error-dialog-data.ts:27](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L27) Textual description of response status code, defaults to OK. Do not depend on this. *** ### timestamp > **timestamp**: `number` Defined in: [any-http-error/any-http-error-dialog-data.ts:13](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L13) *** ### type > **type**: `ResponseHeader` \| `Response` Defined in: [any-http-error/any-http-error-dialog-data.ts:39](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L39) Type of the response, narrowed to either the full response or the header. *** ### url > **url**: `null` \| `string` Defined in: [any-http-error/any-http-error-dialog-data.ts:31](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/any-http-error/any-http-error-dialog-data.ts#L31) URL of the resource retrieved, or null if not available.