"Fossies" - the Fresh Open Source Software Archive

Member "cli-1.1280.1/packages/snyk-fix/src/lib/errors/no-fixes-applied.ts" (20 Feb 2024, 332 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, ERROR_CODES } from './custom-error';
    2 
    3 export class NoFixesCouldBeAppliedError extends CustomError {
    4   public tip?: string;
    5 
    6   public constructor(message?: string, tip?: string) {
    7     super(
    8       message || 'No fixes could be applied',
    9       ERROR_CODES.NoFixesCouldBeApplied,
   10     );
   11     this.tip = tip;
   12   }
   13 }