Java tutorial
//package com.java2s; import android.util.Log; public class Main { /** Handles the exception is a consistent way. */ public static void handle(String tag, Throwable e, String msg) { Log.e(tag, msg + ":" + e.getMessage()); } }