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 }