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:
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"
-
-
-
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 expectedgot
- 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 expectedgot
- the object/model which was given insteadcause
- the cause of the Exception
-
-