blob: 5d6dfe8f405d33d4c6acc2d9bf1d21a82d550c6c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.team.internal.ccvs.core.connection;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.osgi.util.NLS;
import org.eclipse.team.internal.ccvs.core.*;
public class CVSAuthenticationException extends CVSException {
private static final long serialVersionUID = 1L;
/**
* Code indicating that authentication can be retried after
* prompting the user for corrected authentication information
*/
public static final int RETRY = 1;
/**
* Code indicating that authentication should not be reattempted.
*/
public static final int NO_RETRY = 2;
/**
* Creates a new <code>CVSAuthenticationException</code>
*
* @param detail a message that describes the exception in detail.
* @param code indicates whether authentication can be retried or not
*/
public CVSAuthenticationException(String detail, int code) {
this(new CVSStatus(IStatus.ERROR, code,
NLS.bind(CVSMessages.CVSAuthenticationException_detail, (new Object[] { detail })))); //
}
/**
* Creates a new <code>CVSAuthenticationException</code>
*
* @param status the status result describing this exception.
*/
public CVSAuthenticationException(IStatus status) {
super(status);
}
public CVSAuthenticationException(String string, int code, Exception e) {
this(new CVSStatus(IStatus.ERROR, code,
NLS.bind(CVSMessages.CVSAuthenticationException_detail, (new Object[] { string })), e)); //
}
}