mirror of https://github.com/apache/lucene.git
fix wrong exception message
This commit is contained in:
parent
eb0c3bd90a
commit
e344ab1d0b
|
@ -42,7 +42,7 @@ public class IndexFormatTooOldException extends IOException {
|
||||||
* @lucene.internal */
|
* @lucene.internal */
|
||||||
public IndexFormatTooOldException(String resourceDescription, String reason) {
|
public IndexFormatTooOldException(String resourceDescription, String reason) {
|
||||||
super("Format version is not supported (resource " + resourceDescription + "): " +
|
super("Format version is not supported (resource " + resourceDescription + "): " +
|
||||||
reason + ". This version of Lucene only supports indexes created with release 4.0 and later.");
|
reason + ". This version of Lucene only supports indexes created with release 5.0 and later.");
|
||||||
this.resourceDescription = resourceDescription;
|
this.resourceDescription = resourceDescription;
|
||||||
this.reason = reason;
|
this.reason = reason;
|
||||||
this.version = null;
|
this.version = null;
|
||||||
|
@ -72,7 +72,7 @@ public class IndexFormatTooOldException extends IOException {
|
||||||
public IndexFormatTooOldException(String resourceDescription, int version, int minVersion, int maxVersion) {
|
public IndexFormatTooOldException(String resourceDescription, int version, int minVersion, int maxVersion) {
|
||||||
super("Format version is not supported (resource " + resourceDescription + "): " +
|
super("Format version is not supported (resource " + resourceDescription + "): " +
|
||||||
version + " (needs to be between " + minVersion + " and " + maxVersion +
|
version + " (needs to be between " + minVersion + " and " + maxVersion +
|
||||||
"). This version of Lucene only supports indexes created with release 4.0 and later.");
|
"). This version of Lucene only supports indexes created with release 5.0 and later.");
|
||||||
this.resourceDescription = resourceDescription;
|
this.resourceDescription = resourceDescription;
|
||||||
this.version = version;
|
this.version = version;
|
||||||
this.minVersion = minVersion;
|
this.minVersion = minVersion;
|
||||||
|
|
Loading…
Reference in New Issue