Skip to content

createCliDiagnosticCodeError

createCliDiagnosticCodeError<TCode>(code, message, options?): CliDiagnosticCodeError<TCode>

Defined in: wp-typia-project-tools/src/runtime/cli-diagnostics.ts:317

Tag a user-facing CLI throw site with a stable diagnostic code.

Prefer this helper, or createCliCommandError({ code }), for new known CLI failures. inferCliDiagnosticCode() remains only a compatibility fallback for legacy or untyped errors.

TCode extends CliDiagnosticCode

TCode

string

ErrorOptions

CliDiagnosticCodeError<TCode>