edu.stanford.ejalbert.exceptionhandler.BrowserLauncherDefaultErrorHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of BrowserLauncher2 Show documentation
Show all versions of BrowserLauncher2 Show documentation
BrowserLauncher2, a continuation of the BrowserLauncher project,
is a library that facilitates opening a browser from a Java application and directing the browser to a supplied url.
In most cases the browser opened will be the user's default browser.
The newest version!
/************************************************
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();
}
}