VersionMismatchException (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.io, class: VersionMismatchException

Package org.apache.hadoop.io

# Class VersionMismatchException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.io.VersionMismatchException

All Implemented Interfaces:
  `Serializable`

@Public @Stable public class VersionMismatchException extends IOException
Thrown by `VersionedWritable.readFields(DataInput)` when the version of an object being read does not match the current implementation version as returned by `VersionedWritable.getVersion()`.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `VersionMismatchException(byte expectedVersionIn, byte foundVersionIn)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `toString()`
  Returns a string representation of this object.

  ### Methods inherited from class java.lang.Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### VersionMismatchException

    public VersionMismatchException(byte expectedVersionIn, byte foundVersionIn)

- ## Method Details

  - ### toString

    public String toString()
    Returns a string representation of this object.
    Overrides:
      `toString` in class `Throwable`