1 package com.td.utility;
3 import android.os.RemoteException;
4 import android.util.Log;
6 public class ExceptionUtil {
7 public static final String TAG_E10 = "com.td.e10";
8 public static final String TAG_E20 = "com.td.e20";
9 public static final String TAG_E30 = "com.td.e30";
10 public static final String TAG_E40 = "com.td.e40";
11 public static final String TAG_E41 = "com.td.e41";
12 public static final String TAG_E42 = "com.td.e42";
13 public static final String TAG_E50 = "com.td.e50";
14 public static final String TAG_E60 = "com.td.e60";
15 public static final String TAG_E70 = "com.td.e70";
16 public static final String TAG_E80 = "com.td.e80";
17 public static final String TAG_E90 = "com.td.e90";
19 private static ExceptionUtil instance = null;
21 public static ExceptionUtil getInstance(){
22 if (instance == null){
23 instance = new ExceptionUtil();
28 private ExceptionUtil(){
32 public void throwException(String tag) throws Exception{
33 if (Log.isLoggable(tag, Log.DEBUG)){
34 throw new Exception();
38 public void throwRemoteException(String tag) throws RemoteException{
39 if (Log.isLoggable(tag, Log.DEBUG)){
40 throw new RemoteException();
44 public boolean isDebug(String tag) {
45 return Log.isLoggable(tag, Log.DEBUG);