core.util
Class ExceptionHandler

java.lang.Object
  extended by core.util.ExceptionHandler

public class ExceptionHandler
extends Object

This class handles all the occuring exceptions in our project.

  Copyright (c) 2006 Sebastian Erdweg
  Copyright (c) 2006 Dominik Schulz
  Copyright (c) 2006 Florian Lindner
  Copyright (c) 2006 Betim Berjani
  
  This file is part of FlexiCrypt.

  FlexiCrypt is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  FlexiCrypt is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
  
  You should have received a copy of the GNU General Public License
  along with FlexiCrypt; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  

Author:
Sebastian

Constructor Summary
ExceptionHandler()
           
 
Method Summary
static void handleException(Exception e)
          Calls e.printStackTrace() and shows a dialog with: -title = classname of e -message = e.getMessage()
static void handleException(Exception e, String title)
          Calls e.printStackTrace() and shows a dialog with: -title = given title -message = e.getMessage()
static void handleException(Exception e, String title, String msg)
          Calls e.printStackTrace() and shows a dialog with: -title = given title -message = given message
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionHandler

public ExceptionHandler()
Method Detail

handleException

public static void handleException(Exception e)
Calls e.printStackTrace() and shows a dialog with: -title = classname of e -message = e.getMessage()

Parameters:
e - The exception

handleException

public static void handleException(Exception e,
                                   String title)
Calls e.printStackTrace() and shows a dialog with: -title = given title -message = e.getMessage()

Parameters:
e - The exception
title - The title

handleException

public static void handleException(Exception e,
                                   String title,
                                   String msg)
Calls e.printStackTrace() and shows a dialog with: -title = given title -message = given message

Parameters:
e - The exception, may be null
title - The title
msg - The message