You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
523 B
26 lines
523 B
3 years ago
|
package fr.mieuxvoter.mj;
|
||
|
|
||
|
/**
|
||
|
* Raised when the provided tally holds negative values, or infinity.
|
||
|
*/
|
||
|
class IncoherentTallyException extends InvalidTallyException {
|
||
|
|
||
|
private static final long serialVersionUID = 5858986651601202903L;
|
||
|
|
||
|
@Override
|
||
|
public String getMessage() {
|
||
|
return (
|
||
|
"The provided tally holds negative values, or infinity. "
|
||
|
+
|
||
|
(null == super.getMessage() ? "" : super.getMessage())
|
||
|
);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public String getLocalizedMessage() {
|
||
|
return super.getLocalizedMessage();
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|