nl.toolforge.karma.core.vc
Class AuthenticationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bynl.toolforge.karma.core.vc.AuthenticationException
All Implemented Interfaces:
java.io.Serializable

public class AuthenticationException
extends java.lang.Exception

Version:
$Id: AuthenticationException.java,v 1.7 2004/11/02 22:26:44 asmedes Exp $
Author:
D.A. Smedes
See Also:
Serialized Form

Field Summary
static ErrorCode AUTHENTICATOR_LOAD_ERROR
          When the authenticators.xml file could not be read properly.
static ErrorCode AUTHENTICATOR_NOT_FOUND
          No authenticator entry is configured that matches the location alias (the id-attribute).
static ErrorCode AUTHENTICATOR_WRITE_ERROR
          Could not write authenticators.xml
static ErrorCode DUPLICATE_AUTHENTICATOR_KEY
          No authenticator entry is configured that matches the location alias (the id-attribute).
static java.lang.String EXCEPTION_PREFIX
          This is the prefix that is shown when displaying the error.
static ErrorCode INVALID_AUTHENTICATOR_CONFIGURATION
          When the authenticator configuration is invalid.
static ErrorCode MISSING_AUTHENTICATOR_CONFIGURATION
          When the location-type requires authentication configuration to be present.
static ErrorCode MISSING_USERNAME
          Username is missing while configuring a new authenticator.
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
AuthenticationException(ErrorCode errorCode)
           
AuthenticationException(ErrorCode errorCode, java.lang.Object[] messageArguments)
           
AuthenticationException(java.lang.Throwable t, ErrorCode errorCode)
           
AuthenticationException(java.lang.Throwable t, ErrorCode errorCode, java.lang.Object[] messageArguments)
           
 
Method Summary
 ErrorCode getErrorCode()
          Gets the exceptions' ErrorCode.
 java.lang.String getMessage()
           
 java.lang.Object[] getMessageArguments()
          Retrieves the message arguments for this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EXCEPTION_PREFIX

public static final java.lang.String EXCEPTION_PREFIX
This is the prefix that is shown when displaying the error.

See Also:
Constant Field Values

INVALID_AUTHENTICATOR_CONFIGURATION

public static final ErrorCode INVALID_AUTHENTICATOR_CONFIGURATION
When the authenticator configuration is invalid. This is due to functional errors in the content of the <&authenticator>-element. Some locations require certain data to be available (username and password for a pserver location for instance).


MISSING_AUTHENTICATOR_CONFIGURATION

public static final ErrorCode MISSING_AUTHENTICATOR_CONFIGURATION
When the location-type requires authentication configuration to be present.


DUPLICATE_AUTHENTICATOR_KEY

public static final ErrorCode DUPLICATE_AUTHENTICATOR_KEY
No authenticator entry is configured that matches the location alias (the id-attribute).


AUTHENTICATOR_LOAD_ERROR

public static final ErrorCode AUTHENTICATOR_LOAD_ERROR
When the authenticators.xml file could not be read properly.


AUTHENTICATOR_NOT_FOUND

public static final ErrorCode AUTHENTICATOR_NOT_FOUND
No authenticator entry is configured that matches the location alias (the id-attribute).


AUTHENTICATOR_WRITE_ERROR

public static final ErrorCode AUTHENTICATOR_WRITE_ERROR
Could not write authenticators.xml


MISSING_USERNAME

public static final ErrorCode MISSING_USERNAME
Username is missing while configuring a new authenticator.

Constructor Detail

AuthenticationException

public AuthenticationException(ErrorCode errorCode)

AuthenticationException

public AuthenticationException(java.lang.Throwable t,
                               ErrorCode errorCode)

AuthenticationException

public AuthenticationException(ErrorCode errorCode,
                               java.lang.Object[] messageArguments)

AuthenticationException

public AuthenticationException(java.lang.Throwable t,
                               ErrorCode errorCode,
                               java.lang.Object[] messageArguments)
Method Detail

getMessage

public java.lang.String getMessage()

getErrorCode

public final ErrorCode getErrorCode()
Gets the exceptions' ErrorCode.


getMessageArguments

public final java.lang.Object[] getMessageArguments()
Retrieves the message arguments for this exception.



Copyright © 2002-2004 Toolforge. All Rights Reserved.