throw Android SQL Exception - Android Database

Android examples for Database:SQL Exception

Description

throw Android SQL Exception

Demo Code


//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);
    }
}

Related Tutorials