1 import { CustomError } from './custom-error'; 2 3 export class SarifFileOutputEmptyError extends CustomError { 4 private static ERROR_CODE = 422; 5 private static ERROR_MESSAGE = 6 'Empty --sarif-file-output argument. Did you mean --file=path/to/output-file.json ?'; 7 8 constructor() { 9 super(SarifFileOutputEmptyError.ERROR_MESSAGE); 10 this.code = SarifFileOutputEmptyError.ERROR_CODE; 11 this.userMessage = SarifFileOutputEmptyError.ERROR_MESSAGE; 12 } 13 }