Skip to main content

throwError

Helper function to throw errors with the following string template "fileName.functionName:errorMsg".

API

function throwError(fileName: string, functionName: string, errMsg: string): void;

Usage

import { throwError } from '@feedzai/js-utilities';

throwError("js-utilities", "throwError", "This throws errors.");