public static void print(Exception ex, String strDebugType, int iPriority)
    {
        System.out.println(ex.getMessage());
        ex.printStackTrace();
    }
public static void print ( Exception ex , String strDebugType , int iPriority ) { System . out . println ( ex . getMessage ( ) ) ; ex . printStackTrace ( ) ; }
Print stack trace if not true.