import { HttpErrorResponse } from '@angular/common/http'; import { ErrorHandler } from '@angular/core'; import { ErrorMessageModel } from '@uofx/core'; import { TimeoutError } from 'rxjs'; export declare class UofxHttpErrorHandlerLogic extends ErrorHandler { /** 紀錄錯誤訊息到 Client 端 */ static unexpectedErrorHandler(error: string | Error, type?: string): void; /** * 錯誤處理 * @param error 錯誤 */ static httpErrorHandler(error: any): ErrorMessageModel | string | null; /** @internal No Status 錯誤,不記錄 Log 在 Client 端 */ static _errorNoStatus(httpError: HttpErrorResponse | TimeoutError): ErrorMessageModel; /** @internal 400 錯誤,商業邏輯錯誤不記錄 Log 在 Client 端 */ static _error400(httpError: HttpErrorResponse): ErrorMessageModel; /** @internal 401 錯誤,token不存在,不會記錄 Log 在 Client 端 */ static _error401(httpError: HttpErrorResponse): string; /** @internal 500 錯誤,會記錄 Log 在 Client 端 */ static _error500(httpError: HttpErrorResponse): ErrorMessageModel; /** @internal 其餘錯誤,不記錄 Log 在 Client 端 */ static _errorOther(httpError: HttpErrorResponse): ErrorMessageModel; /** @internal 紀錄錯誤訊息 */ static _exceptionKeeper(message: any, eventId: string): void; handleError(error: HttpErrorResponse | Error | string): void; }