MCPcopy Create free account
hub / github.com/conventional-changelog/commitlint / CliError

Class CliError

@commitlint/cli/src/cli-error.ts:9–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7}
8
9export class CliError extends Error {
10 __proto__ = Error;
11
12 public type: string;
13 public error_code: ExitCode;
14
15 constructor(message: string, type: string, error_code = ExitCode.CommitlintErrorDefault) {
16 super(message);
17
18 this.type = type;
19 this.error_code = error_code;
20
21 Object.setPrototypeOf(this, CliError.prototype);
22 }
23}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected