com.google.api.ads.common.lib.exception
Class ClientLoginException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.google.api.ads.common.lib.exception.AuthenticationException
              extended by com.google.api.ads.common.lib.exception.ClientLoginException
All Implemented Interfaces:
Serializable

Deprecated. Use .ClientLoginResponseException ClientLoginResponseException instead

@Deprecated
public class ClientLoginException
extends AuthenticationException

An exception thrown when the ClientLogin API was unable to successfully generate a token.

Author:
Adam Rogal
See Also:
Serialized Form

Constructor Summary
ClientLoginException(Integer httpStatusCode, String httpResponseBody, String errorCode, CaptchaInformation captchaInfo, IOException ioException)
          Deprecated. Constructor.
 
Method Summary
 CaptchaInformation getCaptchaInfo()
          Deprecated.  
 String getErrorCode()
          Deprecated.  
 String getHttpResponseBody()
          Deprecated.  
 Integer getHttpStatusCode()
          Deprecated.  
 IOException getIoException()
          Deprecated.  
 String getMessage()
          Deprecated.  
 
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
 

Constructor Detail

ClientLoginException

public ClientLoginException(Integer httpStatusCode,
                            String httpResponseBody,
                            String errorCode,
                            CaptchaInformation captchaInfo,
                            IOException ioException)
Deprecated. 
Constructor.

Parameters:
httpStatusCode - the HTTP status code
httpResponseBody - the HTTP response body
errorCode - the client login error code if present
captchaInfo - the captcha information if present
ioException - the IOException that caused the authentication failure
Method Detail

getHttpStatusCode

public Integer getHttpStatusCode()
Deprecated. 
Returns:
the httpStatusCode the HTTP status code

getHttpResponseBody

public String getHttpResponseBody()
Deprecated. 
Returns:
the httpResponseBody the HTTP response body

getErrorCode

public String getErrorCode()
Deprecated. 
Returns:
the errorCode the client login error code if present.

getCaptchaInfo

public CaptchaInformation getCaptchaInfo()
Deprecated. 
Returns:
the captchaInfo the captcha information if present.

getIoException

public IOException getIoException()
Deprecated. 
Returns:
the ioException the IOException that caused the failure

getMessage

public String getMessage()
Deprecated. 
Overrides:
getMessage in class Throwable
See Also:
Throwable.getMessage()


Copyright © 2012. All Rights Reserved.