ChanDefOtherChanUseException.java 889 Bytes
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
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;
}
}