| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013 ForgeRock AS. |
| | | * Portions Copyright 2013-2014 ForgeRock AS. |
| | | */ |
| | | |
| | | package org.opends.quicksetup.util; |
| | | import org.opends.messages.Message; |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | |
| | | import java.io.IOException; |
| | | import java.lang.reflect.InvocationTargetException; |
| | |
| | | if (browser == null) |
| | | { |
| | | throw new WebBrowserException(url, // TODO: i18n |
| | | Message.raw("Could not find web browser"), |
| | | LocalizableMessage.raw("Could not find web browser"), |
| | | null); |
| | | } else |
| | | { |
| | |
| | | } catch (ClassNotFoundException cnfe) |
| | | { |
| | | throw new WebBrowserException(url, // TODO: i18n |
| | | Message.raw("Class Not Found Exception"), cnfe); |
| | | LocalizableMessage.raw("Class Not Found Exception"), cnfe); |
| | | } catch (IOException ioe) |
| | | { |
| | | throw new WebBrowserException(url, // TODO: i18n |
| | | Message.raw("IO Exception"), ioe); |
| | | LocalizableMessage.raw("IO Exception"), ioe); |
| | | } catch (InterruptedException ie) |
| | | { |
| | | throw new WebBrowserException(url, // TODO: i18n |
| | | Message.raw("Interrupted Exception"), ie); |
| | | LocalizableMessage.raw("Interrupted Exception"), ie); |
| | | } catch (NoSuchMethodException nsme) |
| | | { |
| | | throw new WebBrowserException(url, // TODO: i18n |
| | | Message.raw("No Such Method Exception"), nsme); |
| | | LocalizableMessage.raw("No Such Method Exception"), nsme); |
| | | } catch (InvocationTargetException ite) |
| | | { |
| | | throw new WebBrowserException(url, // TODO: i18n |
| | | Message.raw("Invocation Target Exception"), ite); |
| | | LocalizableMessage.raw("Invocation Target Exception"), ite); |
| | | } catch (IllegalAccessException iae) |
| | | { |
| | | throw new WebBrowserException(url, // TODO: i18n |
| | | Message.raw("Illegal Access Exception"), iae); |
| | | LocalizableMessage.raw("Illegal Access Exception"), iae); |
| | | } |
| | | } |
| | | } |