-
- All Implemented Interfaces:
-
java.io.Serializable
public final class UncomparableDistancesException extends IllegalArgumentException
An exception meant to be thrown when trying to compare incompatible distances.
-
-
Constructor Summary
Constructors Constructor Description UncomparableDistancesException(Position<out Object> pos1, Position<out Object> pos2, Throwable cause)Builds the exception given two positions claimed to be not compatible. UncomparableDistancesException(Position<out Object> pos1, Position<out Object> pos2)Builds the exception given two positions claimed to be not compatible.
-
Method Summary
Modifier and Type Method Description StringgetMessage()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
UncomparableDistancesException
UncomparableDistancesException(Position<out Object> pos1, Position<out Object> pos2, Throwable cause)
Builds the exception given two positions claimed to be not compatible.- Parameters:
pos1- the first positionpos2- the second positioncause- the cause for this exception
-
-
Method Detail
-
getMessage
String getMessage()
-
-
-
-