Interface ErrorCode

    • Method Detail

      • getCode

        String getCode()
        错误编码
        Returns:
      • getDescription

        String getDescription()
        错误描述
        Returns:
      • toString

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