563N/A/*
563N/A * CDDL HEADER START
563N/A *
563N/A * The contents of this file are subject to the terms of the
563N/A * Common Development and Distribution License, Version 1.0 only
563N/A * (the "License"). You may not use this file except in compliance
563N/A * with the License.
563N/A *
563N/A * You can obtain a copy of the license at
563N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE
563N/A * or https://OpenDS.dev.java.net/OpenDS.LICENSE.
563N/A * See the License for the specific language governing permissions
563N/A * and limitations under the License.
563N/A *
563N/A * When distributing Covered Code, include this CDDL HEADER in each
563N/A * file and include the License file at
563N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
563N/A * add the following below this CDDL HEADER, with the fields enclosed
873N/A * by brackets "[]" replaced with your own identifying information:
563N/A * Portions Copyright [yyyy] [name of copyright owner]
563N/A *
563N/A * CDDL HEADER END
563N/A *
563N/A *
3215N/A * Copyright 2006-2008 Sun Microsystems, Inc.
563N/A */
563N/A
563N/Apackage org.opends.quicksetup.util;
563N/A
2086N/Aimport org.opends.server.types.OpenDsException;
2086N/Aimport org.opends.messages.Message;
2086N/A
563N/A/**
563N/A * This class is the exception that we get when we try to launch the user web
563N/A * browser and we fail. The exception is generated in WebBrowserLauncher.
563N/A *
563N/A */
2086N/Apublic class WebBrowserException extends OpenDsException {
2086N/A
563N/A private static final long serialVersionUID = 4283835325192567244L;
563N/A
563N/A private String url;
563N/A
563N/A /**
563N/A * Constructor of the WebBrowserException.
563N/A * @param url the url that we were trying to display.
563N/A * @param msg the error message.
563N/A * @param rootCause the root cause.
563N/A */
2086N/A public WebBrowserException(String url, Message msg, Throwable rootCause)
563N/A {
563N/A super(msg, rootCause);
563N/A this.url = url;
563N/A }
563N/A
563N/A /**
563N/A * Returns the url that we were trying to display when the exception occurred.
563N/A * @return the url that we were trying to display when the exception occurred.
563N/A */
563N/A public String getUrl()
563N/A {
563N/A return this.url;
563N/A }
563N/A}