Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/momentum/cli/commands/tool/base.tool.ts>cmd.CommanderError

Momentum is an open-source framework for building server-side Deno applications in TypeScript. It provides the paradigms and design patterns to guide developers to create robust, scalable, and enterprise-grade applications.
Latest
class cmd.CommanderError
extends Error
import { cmd } from "https://deno.land/x/momentum@v0.8.2/cli/commands/tool/base.tool.ts";
const { CommanderError } = cmd;

CommanderError class

Constructors

new
CommanderError(
exitCode: number,
code: string,
message: string,
)

Constructs the CommanderError class

Properties

code: string
exitCode: number
optional
nestedError: string