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:
Serializable

public class AuthenticationException
extends 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.

Author:
Robert Greig
See Also:
Serialized Form

Constructor Summary
AuthenticationException(String message, String localizedMessage)
          Construct an AuthenticationException with a message giving more details of what went wrong.
AuthenticationException(String message, Throwable underlyingThrowable, String localizedMessage)
          Construct an AuthenticationException with a message and an underlying exception.
AuthenticationException(Throwable underlyingThrowable, String localizedMessage)
          Construct an AuthenticationException with an underlying exception.
 
Method Summary
protected static String getBundleString(String key)
           
 String getLocalizedMessage()
           
 String getMessage()
           
 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(String message,
                               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(String message,
                               Throwable underlyingThrowable,
                               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(Throwable underlyingThrowable,
                               String localizedMessage)
Construct an AuthenticationException with an underlying exception.

Parameters:
t - the underlying throwable that caused this exception
Method Detail

getUnderlyingThrowable

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

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

getLocalizedMessage

public String getLocalizedMessage()
Overrides:
getLocalizedMessage in class Throwable

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getBundleString

protected static String getBundleString(String key)


Copyright © 2011. All Rights Reserved.