"use strict";var __extends=this&&this.__extends||function(){var o=function(t,r){o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var u in n)if(Object.prototype.hasOwnProperty.call(n,u))e[u]=n[u]};return o(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(exports,"__esModule",{value:true});exports.DbBuildError=exports.ErrorCode=void 0;var ErrorCode;(function(o){o["INVALID_PARAM"]="INVALID_PARAM";o["INVALID_COMMAND"]="INVALID_COMMAND";o["SEMANTIC_ERROR"]="SEMANTIC_ERROR"})(ErrorCode||(exports.ErrorCode=ErrorCode={}));var DbBuildError=function(o){__extends(t,o);function t(r){var e=o.call(this,r)||this;Object.setPrototypeOf(e,t.prototype);return e}t.create=function(r,e){var n=new t(e);n.code=r;return n};t.invalidParam=function(r,e){return t.create(ErrorCode.INVALID_PARAM,'\u65E0\u6548\u5165\u53C2\uFF0C\u53C2\u6570 "'.concat(r,'" ').concat(e))};t.invalidCommand=function(r){return t.create(ErrorCode.INVALID_COMMAND,r)};t.semanticError=function(r){return t.create(ErrorCode.SEMANTIC_ERROR,r)};return t}(Error);exports.DbBuildError=DbBuildError;