"Fossies" - the Fresh Open Source Software Archive

Member "cli-1.1260.0/src/lib/errors/json-file-output-bad-input-error.ts" (4 Dec 2023, 468 Bytes) of package /linux/misc/snyk-cli-1.1260.0.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 JsonFileOutputBadInputError extends CustomError {
    4   private static ERROR_CODE = 422;
    5   private static ERROR_MESSAGE =
    6     'Empty --json-file-output argument. Did you mean --file=path/to/output-file.json ?';
    7 
    8   constructor() {
    9     super(JsonFileOutputBadInputError.ERROR_MESSAGE);
   10     this.code = JsonFileOutputBadInputError.ERROR_CODE;
   11     this.userMessage = JsonFileOutputBadInputError.ERROR_MESSAGE;
   12   }
   13 }