@nestjs-kitchen/connextion-presto
Version:
A flexible module to provide presto-client interface in NextJS.
17 lines (16 loc) • 528 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PrestoError = void 0;
const connextion_1 = require("@nestjs-kitchen/connextion");
/**
* Internal error type.
*/
class PrestoError extends connextion_1.ConnextionError {
constructor(message, cause) {
super(typeof message === 'string' ? message : message?.message);
this.name = 'PrestoError';
this.cause = cause;
Object.setPrototypeOf(this, new.target.prototype);
}
}
exports.PrestoError = PrestoError;