UNPKG

nestwhats

Version:

A whatsapp-web.js wrapper for NestJS to create WhatsApp bots

13 lines (12 loc) 497 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommandArgsException = void 0; class CommandArgsException extends Error { constructor(errors) { const messages = errors.flatMap((e) => { var _a; return Object.values((_a = e.constraints) !== null && _a !== void 0 ? _a : {}); }); super(messages.join("; ")); this.name = "CommandArgsException"; this.errors = errors; } } exports.CommandArgsException = CommandArgsException;