com.belladati.sdk.exception.interval.InvalidAbsoluteIntervalException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-api Show documentation
Show all versions of sdk-api Show documentation
The BellaDati SDK allows accessing a BellaDati server from 3rd-party applications using Java. This project contains the SDK's interface definitions.
package com.belladati.sdk.exception.interval;
import java.util.Calendar;
import com.belladati.sdk.intervals.IntervalUnit;
/**
* Indicates that an absolute interval had an invalid range, i.e. the start is
* before the end.
*
* @author Chris Hennigfeld
*/
public class InvalidAbsoluteIntervalException extends InvalidIntervalRangeException {
/** The serialVersionUID */
private static final long serialVersionUID = -610277881390602277L;
private final Calendar start;
private final Calendar end;
public InvalidAbsoluteIntervalException(IntervalUnit intervalUnit, Calendar start, Calendar end) {
super(intervalUnit, "Interval start cannot be before its end");
this.start = start;
this.end = end;
}
@Override
public Calendar getStart() {
return start;
}
@Override
public Calendar getEnd() {
return end;
}
}