Class NotComparableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
NotComparableException
- All Implemented Interfaces:
- java.io.Serializable
public class NotComparableException
- extends java.lang.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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NotComparableException
public NotComparableException(java.lang.Object a,
java.lang.Object b)
NotComparableException
public NotComparableException(java.lang.Object o)
NotComparableException
public NotComparableException(java.lang.Class cl)
NotComparableException
public NotComparableException(java.lang.String type)