packages/mip/src/util/custom-storage.js
function getErrorMess (code, name) {
  let mess
  switch (code) {
    case eCode.siteExceed:
      mess = 'storage space need less than 4k'
      break
    case eCode.lsExceed:
      mess = 'Uncaught DOMException: Failed to execute setItem on Storage: Setting the value of ' +
        name + ' exceeded the quota at ' + window.location.href
  }
  return mess
}
function getErrorMess (code, name) {
  let mess
  switch (code) {
    case eCode.siteExceed:
      mess = 'storage space need less than 4k'
      break
    case eCode.lsExceed:
      mess = 'Uncaught DOMException: Failed to execute setItem on Storage: Setting the value of ' +
        name + ' exceeded the quota at ' + window.location.href
  }
  return mess
}
function getErrorMess ( code , name ) { let mess switch ( code ) { case eCode . siteExceed : mess = 'storage space need less than 4k' break case eCode . lsExceed : mess = 'Uncaught DOMException: Failed to execute setItem on Storage: Setting the value of ' + name + ' exceeded the quota at ' + window . location . href } return mess }
Get error message with error code

@param {string} code error code
@param {string} name error name
@return {string} error message
Get error message with error code