Java tutorial
//package com.java2s; import android.util.Log; public class Main { public static void error(String paramString) { Log.e("WLDroidGap", getMsgNotNull(paramString)); } public static void error(String paramString, Throwable paramThrowable) { Log.e("WLDroidGap", getMsgNotNull(paramString), paramThrowable); } private static String getMsgNotNull(String paramString) { if (paramString == null) paramString = "null"; return paramString; } }