org.netbeans.lib.cvsclient.connection
Class AuthenticationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.netbeans.lib.cvsclient.connection.AuthenticationException
All Implemented Interfaces:
java.io.Serializable

public class AuthenticationException
extends java.lang.Exception

This exception is thrown when a connection with the server cannot be made, for whatever reason. It may be that the username and/or password are incorrect or it could be that the port number is incorrect. Note that authentication is not restricted here to mean security.

See Also:
Serialized Form

Constructor Summary
AuthenticationException(java.lang.String message, java.lang.String localizedMessage)
          Construct an AuthenticationException with a message giving more details of what went wrong.
AuthenticationException(java.lang.String message, java.lang.Throwable underlyingThrowable, java.lang.String localizedMessage)
          Construct an AuthenticationException with a message and an underlying exception.
AuthenticationException(java.lang.Throwable underlyingThrowable, java.lang.String localizedMessage)
          Construct an AuthenticationException with an underlying exception.
 
Method Summary
protected static java.lang.String getBundleString(java.lang.String key)
           
 java.lang.String getLocalizedMessage()
           
 java.lang.String getMessage()
           
 java.lang.Throwable getUnderlyingThrowable()
          Get the underlying throwable that is responsible for this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthenticationException

public AuthenticationException(java.lang.String message,
                               java.lang.String localizedMessage)
Construct an AuthenticationException with a message giving more details of what went wrong.

Parameters:
message - the message describing the error

AuthenticationException

public AuthenticationException(java.lang.String message,
                               java.lang.Throwable underlyingThrowable,
                               java.lang.String localizedMessage)
Construct an AuthenticationException with a message and an underlying exception.

Parameters:
message - the message describing what went wrong

AuthenticationException

public AuthenticationException(java.lang.Throwable underlyingThrowable,
                               java.lang.String localizedMessage)
Construct an AuthenticationException with an underlying exception.

Method Detail

getUnderlyingThrowable

public java.lang.Throwable getUnderlyingThrowable()
Get the underlying throwable that is responsible for this exception.

Returns:
the underlying throwable, if any (may be null).

getLocalizedMessage

public java.lang.String getLocalizedMessage()

getMessage

public java.lang.String getMessage()

getBundleString

protected static java.lang.String getBundleString(java.lang.String key)


Built on February 19 2008.  |  Portions Copyright 1997-2003 Sun Microsystems, Inc. All rights reserved.