getErrorCodeInfo static method

dynamic getErrorCodeInfo(
  1. int code
)

Implementation

static getErrorCodeInfo(int code) {
  switch (code) {
    case 0:
      return '成功';
    case 500:
      return 'error500';
  }
  return 'unknown code';
}