"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.errors=void 0;const faas_common_sdk_1=require("@alipay/faas-common-sdk");exports.errors={INVALID_PARAM(e,s){return faas_common_sdk_1.FaasError.INVALID_PARAM_ERR(e,s)},NETWORK_ERR(e,s){const r=new faas_common_sdk_1.FaasError(-1,e.toString());return r.requestID=s,r},STORAGE_DOWNLOAD_FILE_ERR(e,s){const r=new faas_common_sdk_1.FaasError(-1,`\u6587\u4EF6\u4E0B\u8F7D\u5931\u8D25, ${e}`);return r.requestID=s,r},STORAGE_UPLOAD_FILE_ERR(e,s){const r=new faas_common_sdk_1.FaasError(-1,`\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25, ${e}`);return r.requestID=s,r},INVALID_OPENAPI_RESPONSE_ERR(e,s){const r=new faas_common_sdk_1.FaasError(-1,`\u8FD4\u56DE\u503C ${JSON.stringify(s)} \u683C\u5F0F\u4E0D\u6B63\u786E`);return r.requestID=e,r},WEBSOCKET_ERR(e,s,r,o){const E=r?`: ${r}`:"",t=new faas_common_sdk_1.FaasError(-1,`${e}(${s||"-"})${E}`);return t.requestID=o||"",t},NOT_FOUND_ERR(e){return faas_common_sdk_1.FaasError.NOT_FOUND_ERR(e)}};