"Fossies" - the Fresh Open Source Software Archive

Member "cli-1.1256.0/src/lib/errors/connection-timeout-error.ts" (27 Nov 2023, 317 Bytes) of package /linux/misc/snyk-cli-1.1256.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 ConnectionTimeoutError extends CustomError {
    4   private static ERROR_MESSAGE = 'Connection timeout.';
    5 
    6   constructor() {
    7     super(ConnectionTimeoutError.ERROR_MESSAGE);
    8     this.code = 504;
    9     this.userMessage = ConnectionTimeoutError.ERROR_MESSAGE;
   10   }
   11 }