Android examples for Database:SQL Exception
throw Android SQL Exception
//package com.java2s; import java.sql.SQLException; import android.util.Log; public class Main { public static void throwAndroidSQLException(String tag, SQLException e) { String error = "" + e.getMessage(); Log.e(tag, error, e);/*from ww w .ja v a 2 s .c om*/ throw new android.database.SQLException(error); } }