Class ClassMismatchException

All Implemented Interfaces:
Serializable

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

    • ClassMismatchException

      public ClassMismatchException(Object expected, 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(Object expected, Object got, 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