1 11 package org.eclipse.team.internal.ccvs.core.connection; 12 13 14 import org.eclipse.core.resources.IResource; 15 import org.eclipse.core.runtime.IStatus; 16 import org.eclipse.osgi.util.NLS; 17 import org.eclipse.team.internal.ccvs.core.*; 18 19 public class CVSAuthenticationException extends CVSException { 20 21 private static final long serialVersionUID = 1L; 22 23 private int retryStatus = 0; 24 25 29 public static final int RETRY = 1; 30 31 34 public static final int NO_RETRY = 2; 35 36 41 private CVSAuthenticationException(IStatus status) { 42 super(status); 43 } 44 45 51 public CVSAuthenticationException(String detail, int retryStatus) { 52 this(new CVSStatus(IStatus.ERROR, CVSStatus.AUTHENTICATION_FAILURE,NLS.bind(CVSMessages.CVSAuthenticationException_detail, (new Object [] { detail })), (IResource) null)); this.retryStatus = retryStatus; 54 } 55 56 63 public CVSAuthenticationException(String detail, int retryStatus, ICVSRepositoryLocation cvsLocation) { 64 this(new CVSStatus(IStatus.ERROR, CVSStatus.AUTHENTICATION_FAILURE,NLS.bind(CVSMessages.CVSAuthenticationException_detail, (new Object [] { detail })),cvsLocation)); this.retryStatus = retryStatus; 66 } 67 68 76 public CVSAuthenticationException(String detail, int retryStatus,ICVSRepositoryLocation cvsLocation, Exception e) { 77 this(new CVSStatus(IStatus.ERROR, CVSStatus.AUTHENTICATION_FAILURE , NLS.bind(CVSMessages.CVSAuthenticationException_detail, (new Object [] { detail })), e, cvsLocation)); this.retryStatus = retryStatus; 79 } 80 81 public int getRetryStatus() { 82 return retryStatus; 83 } 84 } 85 | Popular Tags |