com.google.api.ads.adwords.lib.utils.v201209
Class DetailedReportDownloadResponseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.google.api.ads.adwords.lib.utils.ReportDownloadResponseException
              extended by com.google.api.ads.adwords.lib.utils.v201209.DetailedReportDownloadResponseException
All Implemented Interfaces:
Serializable

public class DetailedReportDownloadResponseException
extends ReportDownloadResponseException

Exception wrapping the ReportDownloadError the server responded with. Will populate the fieldPath, trigger and type fields if the XML can be parsed successfully, otherwise errorText should have the HTTP response body.

Author:
Kevin Winter
See Also:
Serialized Form

Constructor Summary
DetailedReportDownloadResponseException(int httpStatus, String errorText)
          Constructor.
 
Method Summary
 String getErrorText()
           
 String getFieldPath()
           
 String getTrigger()
           
 String getType()
           
 void setFieldPath(String fieldPath)
           
 void setTrigger(String trigger)
           
 void setType(String type)
           
 String toString()
           
 
Methods inherited from class com.google.api.ads.adwords.lib.utils.ReportDownloadResponseException
getHttpStatus
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DetailedReportDownloadResponseException

public DetailedReportDownloadResponseException(int httpStatus,
                                               String errorText)
Constructor.

Parameters:
httpStatus - http status code
errorText - from the server
Method Detail

getErrorText

public String getErrorText()

toString

public String toString()
Overrides:
toString in class Throwable

getFieldPath

public String getFieldPath()

getTrigger

public String getTrigger()

getType

public String getType()

setFieldPath

public void setFieldPath(String fieldPath)

setTrigger

public void setTrigger(String trigger)

setType

public void setType(String type)


Copyright © 2012. All Rights Reserved.