org.netbeans.lib.cvsclient.connection
Class AuthenticationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.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
e - the underlying exception

AuthenticationException

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

Parameters:
t - the underlying throwable that caused this 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()
Overrides:
getLocalizedMessage in class java.lang.Throwable

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getBundleString

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

 

Built on October 26 2010.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.