method ErrorFactory.fileHandlerNotFound
ErrorFactory.fileHandlerNotFound(filePath: string): NagareError

Create a file handler not found error

Examples

Example 1

if (!handler) {
  throw ErrorFactory.fileHandlerNotFound("./custom.cfg");
}

Parameters

filePath: string
  • Path to the file that has no handler

Return Type

Error with handler configuration suggestions

Usage

import { ErrorFactory } from ".";