public class

ServiceUnavailableException

extends ServiceException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.google.gdata.util.ServiceException
         ↳ com.google.gdata.util.ServiceUnavailableException

Class Overview

Thrown when an exception occurs that is temporary; i.e., the user should try again. This includes failing backends, rate limiting, and so on. Set the retryTime in seconds to tell the client when to retry.

Summary

[Expand]
Inherited Constants
From class java.lang.Exception
From class java.lang.Throwable
Fields
private int retryTime
[Expand]
Inherited Fields
From class com.google.gdata.util.ServiceException
From class java.lang.Throwable
Public Constructors
ServiceUnavailableException(String message)
ServiceUnavailableException(String message, Throwable cause)
ServiceUnavailableException(Throwable cause)
ServiceUnavailableException(HttpURLConnection httpConn)
ServiceUnavailableException(ErrorDomain.ErrorCode errorCode)
ServiceUnavailableException(ErrorDomain.ErrorCode errorCode, Throwable cause)
Public Methods
int getRetryTime()
void setRetryTime(int retryTime)
[Expand]
Inherited Methods
From class com.google.gdata.util.ServiceException
From class java.lang.Throwable
From class java.lang.Object

Fields

private int retryTime

Public Constructors

public ServiceUnavailableException (String message)

Parameters
message

public ServiceUnavailableException (String message, Throwable cause)

Parameters
message
cause

public ServiceUnavailableException (Throwable cause)

Parameters
cause

public ServiceUnavailableException (HttpURLConnection httpConn)

Parameters
httpConn
Throws
IOException

public ServiceUnavailableException (ErrorDomain.ErrorCode errorCode)

Parameters
errorCode

public ServiceUnavailableException (ErrorDomain.ErrorCode errorCode, Throwable cause)

Parameters
errorCode
cause

Public Methods

public int getRetryTime ()

public void setRetryTime (int retryTime)

Parameters
retryTime