Class VersionMismatchException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by
              extended by
All Implemented Interfaces:

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
VersionMismatchException(byte expectedVersionIn, byte foundVersionIn)
Method Summary
 String toString()
          Returns a string representation of this object.
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public VersionMismatchException(byte expectedVersionIn,
                                byte foundVersionIn)
Method Detail


public String toString()
Returns a string representation of this object.

toString in class Throwable

Copyright © 2007, 2012, Oracle and/or its affiliates. All rights reserved.