Class ClassMismatchException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ClassMismatchException
    extends SystemException
    Exception thrown on a model class mismatch.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassMismatchException​(java.lang.Object expected, java.lang.Object got)
      Default constructor.
      ClassMismatchException​(java.lang.Object expected, java.lang.Object got, java.lang.Throwable cause)
      The message is "Expected: expected.toString but got: got.toString"
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ClassMismatchException

        public ClassMismatchException​(java.lang.Object expected,
                                      java.lang.Object got)
        Default constructor. The message is "Expected: expected.toString but got: got.toString"
        Parameters:
        expected - the object/model which was expected
        got - the object/model which was given instead
      • ClassMismatchException

        public ClassMismatchException​(java.lang.Object expected,
                                      java.lang.Object got,
                                      java.lang.Throwable cause)
        The message is "Expected: expected.toString but got: got.toString"
        Parameters:
        expected - the object/model which was expected
        got - the object/model which was given instead
        cause - the cause of the Exception