com.google.api.ads.common.lib.exception
Class ClientLoginException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.google.api.ads.common.lib.exception.AuthenticationException
com.google.api.ads.common.lib.exception.ClientLoginException
- All Implemented Interfaces:
- Serializable
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
ClientLoginException
public ClientLoginException(Integer httpStatusCode,
String httpResponseBody,
String errorCode,
CaptchaInformation captchaInfo,
IOException ioException)
- Constructor.
- Parameters:
httpStatusCode - the HTTP status codehttpResponseBody - the HTTP response bodyerrorCode - the client login error code if presentcaptchaInfo - the captcha information if presentioException - the IOException that caused the authentication
failure
getHttpStatusCode
public Integer getHttpStatusCode()
- Returns:
- the httpStatusCode the HTTP status code
getHttpResponseBody
public String getHttpResponseBody()
- Returns:
- the httpResponseBody the HTTP response body
getErrorCode
public String getErrorCode()
- Returns:
- the errorCode the client login error code if present.
getCaptchaInfo
public CaptchaInformation getCaptchaInfo()
- Returns:
- the captchaInfo the captcha information if present.
getIoException
public IOException getIoException()
- Returns:
- the ioException the
IOException that caused the failure
getMessage
public String getMessage()
- Overrides:
getMessage in class Throwable
- See Also:
Throwable.getMessage()
Copyright © 2012. All Rights Reserved.