Google Data APIs Client Library



com.google.gdata.data.appsforyourdomain
Class AppsForYourDomainException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.google.gdata.util.ServiceException
              extended by com.google.gdata.data.appsforyourdomain.AppsForYourDomainException
All Implemented Interfaces:
java.io.Serializable

public class AppsForYourDomainException
extends ServiceException

The AppsForYourDomainException indicates a failure in the use of the Google Apps for Your Domain API.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gdata.util.ServiceException
ServiceException.ErrorLocation
 
Field Summary
protected  AppsForYourDomainErrorCode errorCode
           
protected static javax.xml.parsers.DocumentBuilderFactory factory
           
protected  java.lang.String invalidInput
           
 
Fields inherited from class com.google.gdata.util.ServiceException
httpErrorCodeOverride, responseBody, responseContentType
 
Constructor Summary
AppsForYourDomainException()
           
AppsForYourDomainException(AppsForYourDomainErrorCode errorCode)
           
AppsForYourDomainException(AppsForYourDomainErrorCode errorCode, java.lang.String invalidInput)
           
AppsForYourDomainException(AppsForYourDomainErrorCode errorCode, java.lang.String invalidInput, int httpReturnCode)
           
 
Method Summary
 AppsForYourDomainErrorCode getErrorCode()
           
 java.lang.String getInvalidInput()
           
static AppsForYourDomainException narrow(ServiceException se)
          This is a helper method for Clients to use to obtain specific information regarding a ServiceException.
 java.lang.String toString()
          Override the default Throwable toString() implementation to add the response body (either an explicitly set one or the default XML error message) to the resulting output.
 
Methods inherited from class com.google.gdata.util.ServiceException
addSibling, getCodeName, getDebugInfo, getDomainName, getExtendedHelp, getHttpErrorCodeOverride, getHttpHeaders, getInternalReason, getLocation, getLocationType, getMessage, getResponseBody, getResponseContentType, getSendReport, getSiblings, matches, matchesAny, setCode, setDebugInfo, setDomain, setExtendedHelp, setHeaderLocation, setHttpErrorCodeOverride, setInternalReason, setLocation, setResponse, setResponseBody, setResponseContentType, setSendReport, setXpathLocation, toXmlErrorMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

errorCode

protected AppsForYourDomainErrorCode errorCode

invalidInput

protected java.lang.String invalidInput

factory

protected static javax.xml.parsers.DocumentBuilderFactory factory
Constructor Detail

AppsForYourDomainException

public AppsForYourDomainException(AppsForYourDomainErrorCode errorCode,
                                  java.lang.String invalidInput,
                                  int httpReturnCode)

AppsForYourDomainException

public AppsForYourDomainException(AppsForYourDomainErrorCode errorCode,
                                  java.lang.String invalidInput)

AppsForYourDomainException

public AppsForYourDomainException(AppsForYourDomainErrorCode errorCode)

AppsForYourDomainException

public AppsForYourDomainException()
Method Detail

getErrorCode

public AppsForYourDomainErrorCode getErrorCode()

getInvalidInput

public java.lang.String getInvalidInput()

toString

public java.lang.String toString()
Description copied from class: ServiceException
Override the default Throwable toString() implementation to add the response body (either an explicitly set one or the default XML error message) to the resulting output. This is useful because the Throwable toString() output is included in exception stack traces, so this means the full response will be visible in traces.

Overrides:
toString in class ServiceException

narrow

public static AppsForYourDomainException narrow(ServiceException se)
This is a helper method for Clients to use to obtain specific information regarding a ServiceException. Method will return an AppsForYourDomainException with populated errorCode and invalidInput values, or it will return null if the ServiceException is not an AppsForYourDomainException.