1 | ;
|
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 | */
|
9 | Object.defineProperty(exports, "__esModule", { value: true });
|
10 | const CustomErrors_1 = require("../errors/CustomErrors");
|
11 | exports.handleUndefined = (undefinedParam) => {
|
12 | throw new CustomErrors_1.UndefinedParameter(undefinedParam);
|
13 | };
|
14 | exports.handleMandatory = (paramName) => {
|
15 | throw new CustomErrors_1.MandatoryParameter(paramName);
|
16 | };
|