Class ClassMismatchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.hybris.platform.servicelayer.exceptions.SystemException
de.hybris.platform.servicelayer.exceptions.ClassMismatchException
- All Implemented Interfaces:
Serializable
Exception thrown on a model class mismatch.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionClassMismatchException(Object expected, Object got) Default constructor.ClassMismatchException(Object expected, Object got, 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
-
Constructor Details
-
ClassMismatchException
Default constructor. The message is "Expected: expected.toString but got: got.toString"- Parameters:
expected- the object/model which was expectedgot- the object/model which was given instead
-
ClassMismatchException
The message is "Expected: expected.toString but got: got.toString"- Parameters:
expected- the object/model which was expectedgot- the object/model which was given insteadcause- the cause of the Exception
-