public class IndexFormatTooOldException extends IOException
Constructor and Description |
---|
IndexFormatTooOldException(DataInput in,
int version,
int minVersion,
int maxVersion)
Creates an
IndexFormatTooOldException . |
IndexFormatTooOldException(DataInput in,
String reason)
Creates an
IndexFormatTooOldException . |
IndexFormatTooOldException(String resourceDescription,
int version,
int minVersion,
int maxVersion)
Creates an
IndexFormatTooOldException . |
IndexFormatTooOldException(String resourceDescription,
String reason)
Creates an
IndexFormatTooOldException . |
Modifier and Type | Method and Description |
---|---|
Integer |
getMaxVersion()
Returns the maximum version accepted.
|
Integer |
getMinVersion()
Returns the minimum version accepted
This method will return
null if an alternative getReason()
is provided. |
String |
getReason()
Returns an optional reason for this exception if the version information was not available.
|
String |
getResourceDescription()
Returns a description of the file that was too old
|
Integer |
getVersion()
Returns the version of the file that was too old.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public IndexFormatTooOldException(String resourceDescription, 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, String reason)
IndexFormatTooOldException
.in
- the open file that's too oldreason
- the reason for this exception if the version is not availablepublic IndexFormatTooOldException(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 String getResourceDescription()
public String getReason()
null
public Integer getVersion()
null
if an alternative getReason()
is provided.public Integer getMaxVersion()
null
if an alternative getReason()
is provided.public Integer getMinVersion()
null
if an alternative getReason()
is provided.Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.