com.techventus.server.voice.exception
Class AuthenticationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by com.techventus.server.voice.exception.AuthenticationException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AccountDeletedException, AccountDisabledException, BadAuthenticationException, CaptchaRequiredException, NotVerifiedException, ServiceDisabledException, ServiceUnavailableException, TermsNotAgreedException

public class AuthenticationException
extends java.io.IOException

See Also:
Serialized Form

Constructor Summary
AuthenticationException()
           
AuthenticationException(ERROR_CODE errorCode)
           
AuthenticationException(java.lang.Throwable cause, ERROR_CODE errorCode)
           
 
Method Summary
 ERROR_CODE getError()
           
 void setErrorCode(ERROR_CODE errorCode)
           
 void setErrorCode(java.lang.String errorCodeString)
           
static void throwProperException(ERROR_CODE errorCode, java.lang.String captchaToken, java.lang.String captchaUrl)
           
 
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

AuthenticationException

public AuthenticationException()

AuthenticationException

public AuthenticationException(ERROR_CODE errorCode)

AuthenticationException

public AuthenticationException(java.lang.Throwable cause,
                               ERROR_CODE errorCode)
Method Detail

throwProperException

public static void throwProperException(ERROR_CODE errorCode,
                                        java.lang.String captchaToken,
                                        java.lang.String captchaUrl)
                                 throws AuthenticationException
Throws:
AuthenticationException

setErrorCode

public void setErrorCode(java.lang.String errorCodeString)

setErrorCode

public void setErrorCode(ERROR_CODE errorCode)

getError

public ERROR_CODE getError()