@mikezimm/npmfunctions
Version:
Functions used in my SPFx webparts
25 lines (22 loc) • 1.33 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): string;
export declare function getHelpfullError(e: any, alertMe?: boolean, consoleLog?: boolean, logErrors?: boolean): string;
export declare function convertHelpfullError(e: any, alertMe: boolean | undefined, consoleLog: boolean | undefined, traceString: string | null, logErrors?: boolean): string;
export declare function saveThisLogItem(web: string, list: string, saveItem: any, muteConsole?: boolean): void;