All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.belladati.sdk.exception.interval.InvalidAbsoluteIntervalException Maven / Gradle / Ivy

Go to download

The BellaDati SDK allows accessing a BellaDati server from 3rd-party applications using Java. This project contains the SDK's interface definitions.

There is a newer version: 0.9.15.1
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy