|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.znerd.math.CanNotCompareException
public class CanNotCompareException
Exception thrown to indicate a compare operation failed. This exception
is thrown by the compareTo(RealNumber)
method in
interface RealNumber
.
RealNumber.compareTo(RealNumber)
,
Serialized FormConstructor Summary | |
---|---|
CanNotCompareException(RealNumber a,
RealNumber b)
Constructs a new CanNotCompareException for a failed
comparison between the specified numbers. |
Method Summary | |
---|---|
RealNumber[] |
getNumbers()
Returns the numbers that could not be compared in a new array. |
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 |
Constructor Detail |
---|
public CanNotCompareException(RealNumber a, RealNumber b) throws java.lang.IllegalArgumentException
CanNotCompareException
for a failed
comparison between the specified numbers.
a
- the first number, not null
.b
- the second number, not null
.
java.lang.IllegalArgumentException
- if a == null || b == null
.Method Detail |
---|
public RealNumber[] getNumbers()
null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |