phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karanmehta93 <...@git.apache.org>
Subject [GitHub] phoenix pull request #283: PHOENIX-672 Add GRANT and REVOKE commands using H...
Date Wed, 22 Nov 2017 18:30:09 GMT
Github user karanmehta93 commented on a diff in the pull request:

    https://github.com/apache/phoenix/pull/283#discussion_r152646448
  
    --- Diff: phoenix-core/src/main/java/org/apache/phoenix/schema/TablesNotInSyncException.java
---
    @@ -0,0 +1,16 @@
    +package org.apache.phoenix.schema;
    +
    +import org.apache.phoenix.exception.SQLExceptionCode;
    +import org.apache.phoenix.exception.SQLExceptionInfo;
    +
    +import java.sql.SQLException;
    +
    +public class TablesNotInSyncException extends SQLException {
    +    private static final long serialVersionUID = 1L;
    +    private static SQLExceptionCode code = SQLExceptionCode.TABLES_NOT_IN_SYNC;
    +
    +    public TablesNotInSyncException(String table1, String table2, String diff) {
    +        super(new SQLExceptionInfo.Builder(code).setMessage("Table: " + table1 + " and
Table: " + table2 + " differ in " + diff).build().toString(), code.getSQLState(), code.getErrorCode());
    +    }
    +
    +}
    --- End diff --
    
    Sure. Will refactor.


---

Mime
View raw message