content: package com.alibaba.datax.plugin.writer.hbase11xsqlwriter;
  
  import com.alibaba.datax.common.spi.ErrorCode;
  
  public enum HbaseSQLWriterErrorCode implements ErrorCode {
      REQUIRED_VALUE("Hbasewriter-00", "您缺失了必须填写的参数值."),
      ILLEGAL_VALUE("Hbasewriter-01", "您填写的参数值不合法."),
      GET_HBASE_CONNECTION_ERROR("Hbasewriter-02", "获取Hbase连接时出错."),
      GET_HBASE_TABLE_ERROR("Hbasewriter-03", "获取 Hbase table时出错."),
      CLOSE_HBASE_CONNECTION_ERROR("Hbasewriter-04", "关闭Hbase连接时出错."),
      CLOSE_HBASE_AMIN_ERROR("Hbasewriter-05", "关闭Hbase admin时出错."),
      CLOSE_HBASE_TABLE_ERROR("Hbasewriter-06", "关闭Hbase table时时出错."),
      PUT_HBASE_ERROR("Hbasewriter-07", "写入hbase时发生IO异常."),
      DELETE_HBASE_ERROR("Hbasewriter-08", "delete hbase表时发生异常."),
      TRUNCATE_HBASE_ERROR("Hbasewriter-09", "truncate hbase表时发生异常."),
      ;
  
      private final String code;
      private final String description;
  
      private HbaseSQLWriterErrorCode(String code, String description) {
          this.code = code;
          this.description = description;
      }
  
      @Override
      public String getCode() {
          return this.code;
      }
  
      @Override
      public String getDescription() {
          return this.description;
      }
  
      @Override
      public String toString() {
          return String.format("Code:[%s], Description:[%s].", this.code, this.description);
      }
  }
  