UNPKG

@prestodb/presto-js-client

Version:

This is a Presto JavaScript client that connects to Presto via Presto's REST API to run queries.

20 lines (19 loc) 520 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "PrestoError", { enumerable: true, get: function() { return PrestoError; } }); let PrestoError = class PrestoError extends Error { constructor({ errorCode, errorName, errorType, failureInfo, message }){ super(message); this.errorCode = errorCode; this.errorName = errorName; this.errorType = errorType; this.failureInfo = failureInfo; } };