"Fossies" - the Fresh Open Source Software Archive

Member "cli-1.1280.1/src/lib/errors/exclude-flag-invalid-input.ts" (20 Feb 2024, 498 Bytes) of package /linux/misc/snyk-cli-1.1280.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 import { CustomError } from './custom-error';
    2 
    3 export class ExcludeFlagInvalidInputError extends CustomError {
    4   private static ERROR_CODE = 422;
    5   private static ERROR_MESSAGE =
    6     'The --exclude argument must be a comma separated list of directory or file names and cannot contain a path.';
    7 
    8   constructor() {
    9     super(ExcludeFlagInvalidInputError.ERROR_MESSAGE);
   10     this.code = ExcludeFlagInvalidInputError.ERROR_CODE;
   11     this.userMessage = ExcludeFlagInvalidInputError.ERROR_MESSAGE;
   12   }
   13 }