com.amazon.carbonado
Class CorruptEncodingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.amazon.carbonado.RepositoryException
com.amazon.carbonado.FetchException
com.amazon.carbonado.CorruptEncodingException
- All Implemented Interfaces:
- Serializable
public class CorruptEncodingException
- extends FetchException
A CorruptEncodingException is caused when decoding an encoded record fails.
- Author:
- Brian S O'Neill
- See Also:
- Serialized Form
CorruptEncodingException
public CorruptEncodingException()
CorruptEncodingException
public CorruptEncodingException(String message)
CorruptEncodingException
public CorruptEncodingException(String message,
Throwable cause)
CorruptEncodingException
public CorruptEncodingException(Throwable cause)
CorruptEncodingException
public CorruptEncodingException(int expectedGeneration,
int actualGeneration)
- Parameters:
expectedGeneration - expected layout generation of decoded storableactualGeneration - actual layout generation of decoded storable
setStorableWithPrimaryKey
public void setStorableWithPrimaryKey(Storable s)
- If the decoder can at least extract the primary key, it should set it here.
getStorableWithPrimaryKey
public Storable getStorableWithPrimaryKey()
- If the decoder was able to extract the primary key, it will be available
in the returned Storable.
- Returns:
- partial Storable with primary key defined, or null if unable to
decode the key
getMessage
public String getMessage()
- Overrides:
getMessage in class Throwable
Copyright © 2006-2008 Amazon Technologies, Inc.. All Rights Reserved.