1 24 25 package com.mckoi.database; 26 27 33 34 public class TransactionException extends Exception { 35 36 38 42 public final static int ROW_REMOVE_CLASH = 1; 43 44 48 public final static int TABLE_REMOVE_CLASH = 2; 49 50 54 public final static int TABLE_DROPPED = 3; 55 56 60 public final static int DIRTY_TABLE_SELECT = 4; 61 62 66 public final static int DUPLICATE_TABLE = 5; 67 68 69 70 73 private int type; 74 75 public TransactionException(int type, String message) { 76 super(message); 77 this.type = type; 78 } 79 80 83 public int getType() { 84 return type; 85 } 86 87 88 } 89 | Popular Tags |