method ErrorFactory.versionNotFound
ErrorFactory.versionNotFound(
filePath: string,
searchedPatterns?: string[],
): NagareError

Create a version not found error

Examples

Example 1

throw ErrorFactory.versionNotFound(
  "./version.ts",
  ['export const VERSION']
);

Parameters

filePath: string
  • Path to the file where version was not found
optional
searchedPatterns: string[]
  • Optional array of patterns that were searched

Return Type

Error with version pattern examples

Usage

import { ErrorFactory } from ".";