1 18 package org.apache.activemq.command; 19 20 25 public class ExceptionResponse extends Response { 26 27 Throwable exception; 28 29 public static final byte DATA_STRUCTURE_TYPE=CommandTypes.EXCEPTION_RESPONSE; 30 31 public ExceptionResponse() { 32 } 33 public ExceptionResponse(Throwable e) { 34 setException(e); 35 } 36 37 public byte getDataStructureType() { 38 return DATA_STRUCTURE_TYPE; 39 } 40 41 44 public Throwable getException() { 45 return exception; 46 } 47 48 public void setException(Throwable exception) { 49 this.exception = exception; 50 } 51 52 public boolean isException() { 53 return true; 54 } 55 } 56 | Popular Tags |