All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.stanford.ejalbert.exceptionhandler.BrowserLauncherDefaultErrorHandler Maven / Gradle / Ivy

/************************************************
    Copyright 2005 Jeff Chapman

    This file is part of BrowserLauncher2.

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

    BrowserLauncher2 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 Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with BrowserLauncher2; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

 ************************************************/
// $Id: BrowserLauncherDefaultErrorHandler.java,v 1.1 2005/02/03 00:58:23 jchapman0 Exp $
package edu.stanford.ejalbert.exceptionhandler;

/**
 * The default implementation for BrowserLauncherErrorHandler. It simply
 * prints a stack trace to the console.
 *
 * @author Jeff Chapman
 */
public class BrowserLauncherDefaultErrorHandler
        implements BrowserLauncherErrorHandler {

    public BrowserLauncherDefaultErrorHandler() {
    }

    /**
     * Handles exception by printing a stack trace to the console.
     *
     * @param ex Exception
     */
    public void handleException(Exception ex) {
        ex.printStackTrace();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy