@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
37 lines (35 loc) • 1.48 kB
TypeScript
/***
* db .d88b. d888b d888b d888888b d8b db d888b
* 88 .8P Y8. 88' Y8b 88' Y8b `88' 888o 88 88' Y8b
* 88 88 88 88 88 88 88V8o 88 88
* 88 88 88 88 ooo 88 ooo 88 88 V8o88 88 ooo
* 88booo. `8b d8' 88. ~8~ 88. ~8~ .88. 88 V888 88. ~8~
* Y88888P `Y88P' Y888P Y888P Y888888P VP V8P Y888P
*
import { getHelpfullErrorV2 } from '@mikezimm/npmfunctions/dist/Services/Logging/ErrorHandler';
*/
/**
*
* @param e
* @param alertMe
* @param consoleLog
* @param traceString : Format = webpart|analyticsWeb|analyticsList|result|text1|text2|number1|number2
* @param logErrors : This will log any unknown errors to generic error log
*/
export declare function getHelpfullErrorV2(e: any, alertMe: boolean | undefined, consoleLog: boolean | undefined, traceString: string, logErrors?: boolean): IHelpfullOutput;
export declare function getHelpfullError(e: any, alertMe?: boolean, consoleLog?: boolean, logErrors?: boolean): IHelpfullOutput;
export interface IHelpfullInput {
e: any;
alertMe?: boolean;
consoleLog?: boolean;
traceString?: string | null;
logErrors?: boolean;
}
export interface IHelpfullOutput {
errObj: any;
friendly: string;
result: string;
returnMess: string;
}
export declare function convertHelpfullError(inputs: IHelpfullInput): IHelpfullOutput;
//# sourceMappingURL=friendly.d.ts.map