接口 ErrorCode

    • 方法详细资料

      • getCode

        String getCode()
        错误编码
        返回:
      • getDescription

        String getDescription()
        错误描述
        返回:
      • toString

        String toString()
        必须提供toString的实现
         @Override
         public String toString() {
                return String.format("Code:[%s], Description:[%s]. ", this.code, this.describe);
         }
         
        覆盖:
        toString 在类中 Object