UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

15 lines 625 B
/* Custom modules */ import { BadRequestError } from "./BadRequestError"; import { ErrorCode } from "./ErrorCode"; export class InvalidArgumentError extends BadRequestError { constructor(message, stack, meta, details, logLevel) { super(message, stack, meta, details, logLevel); this.name = "Invalid Argument Error"; this.code = ErrorCode.INVALID_ARGUMENT_ERROR; } toRFC7807Response(data) { const baseResponse = super.toRFC7807Response(data); return Object.assign(Object.assign({}, baseResponse), { type: "Bad Request" }); } } //# sourceMappingURL=invalidArgument.js.map