@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
37 lines (36 loc) • 887 B
TypeScript
import { HttpEventType } from '@angular/common/http';
export interface AnyHttpErrorDialogData {
method: string;
body?: any;
stack?: string;
error: any | null;
message: string;
name: string;
timestamp: number;
/**
* All response headers.
*/
headers: Record<string, string[]>;
/**
* Response status code.
*/
status: number;
/**
* Textual description of response status code, defaults to OK.
*
* Do not depend on this.
*/
statusText: string;
/**
* URL of the resource retrieved, or null if not available.
*/
url: string | null;
/**
* Whether the status code falls in the 2xx range.
*/
ok: boolean;
/**
* Type of the response, narrowed to either the full response or the header.
*/
type: HttpEventType.Response | HttpEventType.ResponseHeader;
}