text: "use strict";
  var __extends = (this && this.__extends) || (function () {
      var extendStatics = Object.setPrototypeOf ||
          ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
          function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
      return function (d, b) {
          extendStatics(d, b);
          function __() { this.constructor = d; }
          d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
      };
  })();
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.ERR_NO_CLIENTS = new Error("No clients provided in DgraphClient constructor");
  exports.ERR_FINISHED = new Error("Transaction has already been committed or discarded");
  exports.ERR_ABORTED = new Error("Transaction has been aborted. Please retry");
  var CustomError = (function (_super) {
      __extends(CustomError, _super);
      function CustomError(message) {
          var _newTarget = this.constructor;
          var _this = _super.call(this, message) || this;
          _this.name = _newTarget.name;
          var setPrototypeOf = Object.setPrototypeOf;
          setPrototypeOf != null
              ? setPrototypeOf(_this, _newTarget.prototype)
              : (_this.__proto__ = _newTarget.prototype);
          var captureStackTrace = Error.captureStackTrace;
          if (captureStackTrace != null) {
              captureStackTrace(_this, _this.constructor);
          }
          return _this;
      }
      return CustomError;
  }(Error));
  exports.CustomError = CustomError;
  var APIError = (function (_super) {
      __extends(APIError, _super);
      function APIError(url, errors) {
          var _this = _super.call(this, errors.length > 0 ? errors[0].message : "API returned errors") || this;
          _this.url = url;
          _this.errors = errors;
          return _this;
      }
      return APIError;
  }(CustomError));
  exports.APIError = APIError;
  