1 24 25 package com.mckoi.database; 26 27 32 33 public class DatabaseException extends Exception { 34 35 private int error_code; 36 37 39 public DatabaseException(int error_code, String message) { 40 super(message); 41 this.error_code = error_code; 42 } 43 44 public DatabaseException(String message) { 45 this(-1, message); 46 } 47 48 51 public int getErrorCode() { 52 return error_code; 53 } 54 55 56 } 57 | Popular Tags |