"Fossies" - the Fresh Open Source Software Archive

Member "cli-1.1280.1/src/lib/errors/missing-arg-error.ts" (20 Feb 2024, 304 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 MissingArgError extends CustomError {
    4   constructor() {
    5     const msg =
    6       'Could not detect an image. Specify an image name to scan and try running the command again.';
    7     super(msg);
    8     this.code = 422;
    9     this.userMessage = msg;
   10   }
   11 }