edu.uoc.tfc.j2ee.icampanario.components.authenticator.exception
Class AuthenticatorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by edu.uoc.tfc.j2ee.icampanario.components.authenticator.exception.AuthenticatorException
All Implemented Interfaces:
java.io.Serializable

public class AuthenticatorException
extends java.lang.Exception

Clase para las excepciones del componente de autenticación

Author:
Ismael Campanario Cabrera
See Also:
Serialized Form

Constructor Summary
AuthenticatorException(java.lang.Exception e)
          Constructor
AuthenticatorException(int error, java.lang.String message)
          Constructor
AuthenticatorException(int error, java.lang.String message, java.lang.Exception e)
          Constructor
AuthenticatorException(java.lang.String message)
          Constructor
 
Method Summary
 int getErrorCode()
          Devuelve el código de error
 void setErrorCode(int errorCode)
          Establece el código de error
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthenticatorException

public AuthenticatorException(int error,
                              java.lang.String message)
Constructor

Parameters:
error - Código de error
message - Mensaje de error

AuthenticatorException

public AuthenticatorException(java.lang.String message)
Constructor

Parameters:
message - Mensaje de error

AuthenticatorException

public AuthenticatorException(int error,
                              java.lang.String message,
                              java.lang.Exception e)
Constructor

Parameters:
error - Código de error
message - Mensaje de error
e - Exception original

AuthenticatorException

public AuthenticatorException(java.lang.Exception e)
Constructor

Parameters:
e - Exception original
Method Detail

getErrorCode

public int getErrorCode()
Devuelve el código de error

Returns:
Código de error

setErrorCode

public void setErrorCode(int errorCode)
Establece el código de error

Parameters:
errorCode - Código de error