UNPKG

@microsoft/sp-webpart-base

Version:

SharePoint Framework support for building web parts

13 lines 552 B
/** * Execute the passed in delegate and re-throw the passed exception */ import { type _ILogSource } from '@microsoft/sp-diagnostics'; import { type SPError } from '@microsoft/sp-core-library'; /** * Execute the passed in delegate and re-throw a custom error. * @param method - method to execute. * @param errorToThrow - custom error to throw. * @param logSource - log source. */ export declare function executeAndReThrow(method: () => void, errorToThrow: SPError, logSource?: _ILogSource): void; //# sourceMappingURL=ExecuteAndReThrow.d.ts.map