var i=function(){var u=function(r,t){u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))n[o]=e[o]};return u(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");u(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var a=function(u){i(r,u);function r(t,n){var e=u.call(this,n)||this;e.name="FaasError";e.error=t;e.errorMessage=n;Object.setPrototypeOf(e,r.prototype);return e}Object.defineProperty(r.prototype,"errCode",{get:function(){return this.error},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"errMsg",{get:function(){return this.message},enumerable:false,configurable:true});r.INVALID_PARAM_ERR=function(t,n){return new r(60001,'\u65E0\u6548\u5165\u53C2\uFF0C\u53C2\u6570 "'.concat(t,'" ').concat(n))};r.NOT_FOUND_ERR=function(t){return new r(60001,t)};r.SERVER_ERR=function(t,n,e,o){var c=new r(t,n);c.requestID=e;c.httpStatus=o;return c};r.STORAGE_ERR=function(t,n,e){var o=new r(t,n);o.requestID=e;return o};r.NETWORK_ERR=function(t,n){var e=new r(-1,t.toString());e.requestID=n;return e};return r}(Error);export{a as FaasError};