public class IndexFormatTooOldException
extends java.io.IOException
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
maxVersion |
private java.lang.Integer |
minVersion |
private java.lang.String |
reason |
private java.lang.String |
resourceDescription |
private java.lang.Integer |
version |
Constructor and Description |
---|
IndexFormatTooOldException(DataInput in,
int version,
int minVersion,
int maxVersion)
Creates an
IndexFormatTooOldException . |
IndexFormatTooOldException(DataInput in,
java.lang.String reason)
Creates an
IndexFormatTooOldException . |
IndexFormatTooOldException(java.lang.String resourceDescription,
int version,
int minVersion,
int maxVersion)
Creates an
IndexFormatTooOldException . |
IndexFormatTooOldException(java.lang.String resourceDescription,
java.lang.String reason)
Creates an
IndexFormatTooOldException . |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getMaxVersion()
Returns the maximum version accepted.
|
java.lang.Integer |
getMinVersion()
Returns the minimum version accepted
This method will return
null if an alternative getReason()
is provided. |
java.lang.String |
getReason()
Returns an optional reason for this exception if the version information was not available.
|
java.lang.String |
getResourceDescription()
Returns a description of the file that was too old
|
java.lang.Integer |
getVersion()
Returns the version of the file that was too old.
|
private final java.lang.String resourceDescription
private final java.lang.String reason
private final java.lang.Integer version
private final java.lang.Integer minVersion
private final java.lang.Integer maxVersion
public IndexFormatTooOldException(java.lang.String resourceDescription, java.lang.String reason)
IndexFormatTooOldException
.resourceDescription
- describes the file that was too oldreason
- the reason for this exception if the version is not availablepublic IndexFormatTooOldException(DataInput in, java.lang.String reason)
IndexFormatTooOldException
.in
- the open file that's too oldreason
- the reason for this exception if the version is not availablepublic IndexFormatTooOldException(java.lang.String resourceDescription, int version, int minVersion, int maxVersion)
IndexFormatTooOldException
.resourceDescription
- describes the file that was too oldversion
- the version of the file that was too oldminVersion
- the minimum version acceptedmaxVersion
- the maximum version acceptedpublic IndexFormatTooOldException(DataInput in, int version, int minVersion, int maxVersion)
IndexFormatTooOldException
.in
- the open file that's too oldversion
- the version of the file that was too oldminVersion
- the minimum version acceptedmaxVersion
- the maximum version acceptedpublic java.lang.String getResourceDescription()
public java.lang.String getReason()
null
public java.lang.Integer getVersion()
null
if an alternative getReason()
is provided.public java.lang.Integer getMaxVersion()
null
if an alternative getReason()
is provided.public java.lang.Integer getMinVersion()
null
if an alternative getReason()
is provided.