package jcircus.exceptions;
import jcircus.util.ChanUse;
/**
* This exception is thrown in the method put() of ChannelSyncEnvironment.
* It is thrown when we try to insert an already defined channel with diferent type.
*
* @author aff
*
*/
public class ChanDefOtherChanUseException extends Exception {
private String channelName;
private ChanUse chanUse, newChanUse;
public String getChannelName() {
return this.channelName;
}
public ChanUse getChanUse() {
return this.chanUse;
}
public ChanUse getNewChanUse() {
return this.newChanUse;
}
public ChanDefOtherChanUseException(String channelName, ChanUse chanSync, ChanUse newChanSync) {
this.channelName = channelName;
this.chanUse = chanSync;
this.newChanUse = newChanSync;
}
}