Class NotComparableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
NotComparableException
- All Implemented Interfaces:
- Serializable
public class NotComparableException
- extends Exception
Exception generated when two objects cannot be compared
Such cases happen when an object does not implement the Comparable
interface or when the comparison produces a ClassCastException
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
NotComparableException
public NotComparableException(Object a,
Object b)
NotComparableException
public NotComparableException(Object o)
NotComparableException
public NotComparableException(Class cl)
NotComparableException
public NotComparableException(String type)