UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

19 lines 823 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MissingArgumentError = void 0; /* Custom modules */ const ErrorCode_1 = require("./ErrorCode"); const BadRequestError_1 = require("./BadRequestError"); class MissingArgumentError extends BadRequestError_1.BadRequestError { constructor(message, stack, meta, details, logLevel) { super(message, stack, meta, details, logLevel); this.name = "Missing Argument Error"; this.code = ErrorCode_1.ErrorCode.MISSING_ARGUMENT_ERROR; } toRFC7807Response(data) { const baseResponse = super.toRFC7807Response(data); return Object.assign(Object.assign({}, baseResponse), { type: "Bad Request" }); } } exports.MissingArgumentError = MissingArgumentError; //# sourceMappingURL=missingArgument.js.map