UNPKG

583 BJavaScriptView Raw
1"use strict";
2/**
3 * @author: JP Lew (jp@cto.ai)
4 * @date: Monday, 29th April 2019 5:55:21 pm
5 * @lastModifiedBy: Prachi Singh (prachi@hackcapital.com)
6 * @lastModifiedTime: Friday, 3rd May 2019 4:57:23 pm
7 * @copyright (c) 2019 CTO.ai
8 */
9Object.defineProperty(exports, "__esModule", { value: true });
10const CustomErrors_1 = require("../errors/CustomErrors");
11exports.handleUndefined = (undefinedParam) => {
12 throw new CustomErrors_1.UndefinedParameter(undefinedParam);
13};
14exports.handleMandatory = (paramName) => {
15 throw new CustomErrors_1.MandatoryParameter(paramName);
16};