@linid-dm/directory-manager-client-core
Version:
Core package by providing a set of angular components for the Directory Manager app.
30 lines (29 loc) • 1.64 kB
TypeScript
import { StateContext } from '@ngxs/store';
import { IGenericErrorMessagesConfig } from '../../interfaces/configs.interface';
import { IErrorDetail } from '../../interfaces/data.interface';
import * as Error from './error.actions';
import * as i0 from "@angular/core";
export interface ErrorStateModel {
isHandlingError: boolean;
errorDetail: IErrorDetail;
lastError: IErrorDetail;
genericErrorMessages: IGenericErrorMessagesConfig;
}
export declare class ErrorState {
static getIsHandlingError(state: ErrorStateModel): boolean;
static getErrorDetail(state: ErrorStateModel): IErrorDetail;
static getLastError(state: ErrorStateModel): IErrorDetail;
static getGenericErrorMessages(state: ErrorStateModel): IGenericErrorMessagesConfig;
static getErrorRouteMsg(state: ErrorStateModel): string;
static getUnavailableHomepageMsg(state: ErrorStateModel): string;
static getNotFoundTabTitle(state: ErrorStateModel): string;
static getNoInternetConnection(state: ErrorStateModel): string;
static getUnreachableServer(state: ErrorStateModel): string;
isHandlingError(ctx: StateContext<ErrorStateModel>, action: Error.IsHandlingError): void;
setErrorDetail(ctx: StateContext<ErrorStateModel>, action: Error.SetErrorDetail): void;
resetErrorDetail(ctx: StateContext<ErrorStateModel>): void;
resetLastError(ctx: StateContext<ErrorStateModel>): void;
setGenericErrorMessages(ctx: StateContext<ErrorStateModel>, action: Error.SetGenericErrorMessages): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorState, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ErrorState>;
}