1042N/A/*
1042N/A * CDDL HEADER START
1042N/A *
1042N/A * The contents of this file are subject to the terms of the
1042N/A * Common Development and Distribution License, Version 1.0 only
1042N/A * (the "License"). You may not use this file except in compliance
1042N/A * with the License.
1042N/A *
1042N/A * You can obtain a copy of the license at
1042N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE
1042N/A * or https://OpenDS.dev.java.net/OpenDS.LICENSE.
1042N/A * See the License for the specific language governing permissions
1042N/A * and limitations under the License.
1042N/A *
1042N/A * When distributing Covered Code, include this CDDL HEADER in each
1042N/A * file and include the License file at
1042N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
1042N/A * add the following below this CDDL HEADER, with the fields enclosed
1042N/A * by brackets "[]" replaced with your own identifying information:
1042N/A * Portions Copyright [yyyy] [name of copyright owner]
1042N/A *
1042N/A * CDDL HEADER END
1042N/A *
1042N/A *
3215N/A * Copyright 2006-2008 Sun Microsystems, Inc.
1042N/A */
1042N/A
1042N/Apackage org.opends.quicksetup;
1042N/A
2086N/Aimport org.opends.messages.Message;
2086N/Aimport org.opends.server.types.OpenDsException;
2086N/A
1042N/A/**
1042N/A * This exception is used when there is an error with the data provided by
1042N/A * the user. It will be thrown by the class that is in charge of validating
1151N/A * the user data (the Application class).
1042N/A *
1042N/A */
2086N/Apublic class UserDataException extends OpenDsException {
2086N/A
1042N/A private static final long serialVersionUID = 1798143194655443132L;
1042N/A
1054N/A private WizardStep step;
1042N/A
1042N/A /**
1042N/A * Constructor for UserDataException.
1042N/A * @param step the step in the wizard where the exception occurred.
2086N/A * @param message the localized message describing the error.
1042N/A */
2086N/A public UserDataException(WizardStep step, Message message)
1042N/A {
2086N/A super(message);
1042N/A this.step = step;
1042N/A }
1042N/A
1042N/A /**
2110N/A * Constructor for UserDataException.
2110N/A * @param step the step in the wizard where the exception occurred.
2110N/A * @param message the localized message describing the error.
2110N/A * @param t the Exception that generated this exception.
2110N/A */
2110N/A public UserDataException(WizardStep step, Message message, Throwable t)
2110N/A {
2110N/A super(message, t);
2110N/A this.step = step;
2110N/A }
2110N/A
2110N/A /**
1042N/A * Returns the step of the wizard in which this exception occurred.
1042N/A * @return the step of the wizard in which this exception occurred.
1042N/A */
1054N/A public WizardStep getStep()
1042N/A {
1042N/A return step;
1042N/A }
1042N/A}