com.belladati.sdk.exception.interval.InvalidRelativeIntervalException 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 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 InvalidRelativeIntervalException extends InvalidIntervalRangeException {
/** The serialVersionUID */
private static final long serialVersionUID = -7249403016857084659L;
private final int start;
private final int end;
public InvalidRelativeIntervalException(IntervalUnit intervalUnit, int start, int end) {
super(intervalUnit, "Interval start cannot be before its end");
this.start = start;
this.end = end;
}
@Override
public Integer getStart() {
return start;
}
@Override
public Integer getEnd() {
return end;
}
}