@fluxhub/fluxhub-lib 19.0.246 → 19.0.248
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -46,3 +46,11 @@ export declare function fhReport(reporter: FHErrorReporter | null, r: FHErrorRep
|
|
|
46
46
|
/** Report per un errore di trasporto, o null se non va segnalato. */
|
|
47
47
|
export declare function fhHttpErrorReport(err: any, base: Omit<FHErrorReport, 'kind' | 'message' | 'status' | 'serverEventId'>): FHErrorReport | null;
|
|
48
48
|
export declare function fhEventId(h: HttpHeaders | null | undefined): string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Errore rilanciato dai servizi dati dopo un KO gia' mostrato a video (toast) e, per
|
|
51
|
+
* query e griglie, gia' segnalato: serve solo a interrompere la catena del chiamante.
|
|
52
|
+
* Se il chiamante non lo gestisce arriverebbe a Rustrak come "Error: No error message",
|
|
53
|
+
* doppione del KO: il portale lo riconosce con fhIsHandled() e lo scarta.
|
|
54
|
+
*/
|
|
55
|
+
export declare function fhHandledError(): Error;
|
|
56
|
+
export declare function fhIsHandled(err: unknown): boolean;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -90,7 +90,7 @@ export { AppService } from './lib/services/app.service';
|
|
|
90
90
|
export { AppMakerService } from './lib/services/app-maker.service';
|
|
91
91
|
export { FileService } from './lib/services/dofile.service';
|
|
92
92
|
export { QueryService } from './lib/services/doquery.service';
|
|
93
|
-
export { FH_ERROR_REPORTER, FH_EVENT_ID_HEADER, FH_ROUTE_HEADER } from './lib/services/error-reporter';
|
|
93
|
+
export { FH_ERROR_REPORTER, FH_EVENT_ID_HEADER, FH_ROUTE_HEADER, fhHandledError, fhIsHandled } from './lib/services/error-reporter';
|
|
94
94
|
export type { FHErrorReport, FHErrorReporter } from './lib/services/error-reporter';
|
|
95
95
|
export { OdbcService } from './lib/services/doquery-odbc.service';
|
|
96
96
|
export { WkfService } from './lib/services/dowkf.service';
|