1 package org.lsst.ccs.bus;
2
3 /**
4 * An ack message to notify initiator of a command rejection.
5 * This is different from a Response with an Exception
6 * @author bamade
7 */
8 // Date: 30/10/2013
9
10 public class NegativeAck extends CommandAck{
11 private String reason ;
12
13 public NegativeAck(Command command, String origin, String reason) {
14 super(command, origin);
15 this.reason = reason;
16 }
17
18 public String getReason() {
19 return reason;
20 }
21
22 public String toString() {
23 return super.toString() + " [" + reason + "]" ;
24 }
25 }