com.techventus.server.voice.exception
Class CaptchaRequiredException

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
                  extended by com.techventus.server.voice.exception.CaptchaRequiredException
All Implemented Interfaces:
java.io.Serializable

public class CaptchaRequiredException
extends AuthenticationException

See Also:
Serialized Form

Constructor Summary
CaptchaRequiredException(java.lang.String captchaToken, java.lang.String captchaUrl)
           
 
Method Summary
 java.lang.String getCaptchaToken()
           
 java.lang.String getCaptchaUrl()
           
 
Methods inherited from class com.techventus.server.voice.exception.AuthenticationException
getError, setErrorCode, setErrorCode, throwProperException
 
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

CaptchaRequiredException

public CaptchaRequiredException(java.lang.String captchaToken,
                                java.lang.String captchaUrl)
Method Detail

getCaptchaToken

public java.lang.String getCaptchaToken()
Returns:
Token representing the specific Captcha challenge. Google supplies this token and the CAPTCHA image URL in a login failed response with the error code "CaptchaRequired".

getCaptchaUrl

public java.lang.String getCaptchaUrl()
Returns:
URL of the Captcha image.