"Fossies" - the Fresh Open Source Software Archive

Member "cli-1.1260.0/src/lib/errors/failed-to-load-policy-error.ts" (4 Dec 2023, 515 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 FailedToLoadPolicyError extends CustomError {
    4   private static ERROR_CODE = 422;
    5   private static ERROR_STRING_CODE = 'POLICY_LOAD_FAILED';
    6   private static ERROR_MESSAGE = 'Could not load policy file.';
    7 
    8   constructor() {
    9     super(FailedToLoadPolicyError.ERROR_MESSAGE);
   10     this.code = FailedToLoadPolicyError.ERROR_CODE;
   11     this.strCode = FailedToLoadPolicyError.ERROR_STRING_CODE;
   12     this.userMessage = FailedToLoadPolicyError.ERROR_MESSAGE;
   13   }
   14 }