-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: special error for too many vuln paths
- Loading branch information
1 parent
842ef7f
commit 82e7ca6
Showing
3 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import {CustomError} from './custom-error'; | ||
|
||
export class TooManyVulnPaths extends CustomError { | ||
private static ERROR_CODE: number = 413; | ||
private static ERROR_STRING_CODE: string = 'TOO_MANY_VULN_PATHS'; | ||
private static ERROR_MESSAGE: string = 'Too many vulnerable paths to process the project'; | ||
|
||
constructor() { | ||
super(TooManyVulnPaths.ERROR_MESSAGE); | ||
this.code = TooManyVulnPaths.ERROR_CODE; | ||
this.strCode = TooManyVulnPaths.ERROR_STRING_CODE; | ||
this.userMessage = TooManyVulnPaths.ERROR_MESSAGE; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters