public class

VersionConflictException

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

Class Overview

The VersionConflictException should be thrown by a service provider when an attempt is made to modify an entry based on a stale version ID.

Summary

[Expand]
Inherited Constants
From class java.lang.Exception
From class java.lang.Throwable
Fields
private IEntry currentEntry If this exception is thrown from an update operation and the entry exists, but has a new version ID, this field represents the current state of the entry.
[Expand]
Inherited Fields
From class com.google.gdata.util.ServiceException
From class java.lang.Throwable
Public Constructors
VersionConflictException()
VersionConflictException(IEntry currentEntry)
VersionConflictException(IEntry currentEntry, Throwable cause)
VersionConflictException(HttpURLConnection httpConn)
VersionConflictException(ErrorDomain.ErrorCode errorCode)
VersionConflictException(ErrorDomain.ErrorCode errorCode, Throwable cause)
Public Methods
void generate(ExtensionProfile extProfile, XmlWriter xw)
Generates XML.
IEntry getCurrentEntry()
void setCurrentEntry(IEntry entry)
[Expand]
Inherited Methods
From class com.google.gdata.util.ServiceException
From class java.lang.Throwable
From class java.lang.Object

Fields

private IEntry currentEntry

If this exception is thrown from an update operation and the entry exists, but has a new version ID, this field represents the current state of the entry.

Public Constructors

public VersionConflictException ()

public VersionConflictException (IEntry currentEntry)

Parameters
currentEntry

public VersionConflictException (IEntry currentEntry, Throwable cause)

Parameters
currentEntry
cause

public VersionConflictException (HttpURLConnection httpConn)

Parameters
httpConn
Throws
IOException

public VersionConflictException (ErrorDomain.ErrorCode errorCode)

Parameters
errorCode

public VersionConflictException (ErrorDomain.ErrorCode errorCode, Throwable cause)

Parameters
errorCode
cause

Public Methods

public void generate (ExtensionProfile extProfile, XmlWriter xw)

Generates XML.

Parameters
extProfile Extension profile.
xw Output writer.
Throws
IOException

public IEntry getCurrentEntry ()

public void setCurrentEntry (IEntry entry)

Parameters
entry