org.elasticsearch.index.engine
Class VersionConflictEngineException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.elasticsearch.ElasticSearchException
                  extended by org.elasticsearch.index.IndexException
                      extended by org.elasticsearch.index.shard.IndexShardException
                          extended by org.elasticsearch.index.engine.EngineException
                              extended by org.elasticsearch.index.engine.VersionConflictEngineException
All Implemented Interfaces:
Serializable

public class VersionConflictEngineException
extends EngineException

See Also:
Serialized Form

Constructor Summary
VersionConflictEngineException(ShardId shardId, String type, String id, long current, long provided)
           
 
Method Summary
 long getCurrentVersion()
           
 long getProvidedVersion()
           
 RestStatus status()
          Returns the rest status code associated with this exception.
 
Methods inherited from class org.elasticsearch.index.shard.IndexShardException
shardId
 
Methods inherited from class org.elasticsearch.index.IndexException
index
 
Methods inherited from class org.elasticsearch.ElasticSearchException
contains, getDetailedMessage, getMostSpecificCause, getRootCause, unwrapCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VersionConflictEngineException

public VersionConflictEngineException(ShardId shardId,
                                      String type,
                                      String id,
                                      long current,
                                      long provided)
Method Detail

status

public RestStatus status()
Description copied from class: ElasticSearchException
Returns the rest status code associated with this exception.

Overrides:
status in class ElasticSearchException

getCurrentVersion

public long getCurrentVersion()

getProvidedVersion

public long getProvidedVersion()


Copyright © 2009-2012. All Rights Reserved.