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