datocms-client
Version:
For new DatoCMS users, we recommend @datocms/cma-client-node
17 lines (14 loc) • 426 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = InvalidApiRequestException;
function InvalidApiRequestException(message, preCallStack) {
if ('captureStackTrace' in Error) {
Error.captureStackTrace(this, InvalidApiRequestException);
} else {
this.stack = new Error().stack;
}
this.message = message;
this.stack += "\nCaused By:\n".concat(preCallStack);
}