public class IndexFormatTooOldException
extends java.io.IOException
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.
|
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.Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.