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

Method constructor

@commitlint/cli/src/cli-error.ts:15–22  ·  view source on GitHub ↗
(message: string, type: string, error_code = ExitCode.CommitlintErrorDefault)

Source from the content-addressed store, hash-verified

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