Github user ankitsinghal commented on a diff in the pull request:
https://github.com/apache/phoenix/pull/283#discussion_r152480644
--- 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 --
we can add some comments here.
---