Package org.apache.activemq.command
Class ExceptionResponse
- java.lang.Object
-
- org.apache.activemq.command.BaseCommand
-
- org.apache.activemq.command.Response
-
- org.apache.activemq.command.ExceptionResponse
-
- All Implemented Interfaces:
Command
,DataStructure
public class ExceptionResponse extends Response
-
-
Field Summary
Fields Modifier and Type Field Description static byte
DATA_STRUCTURE_TYPE
-
Fields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired
-
-
Constructor Summary
Constructors Constructor Description ExceptionResponse()
ExceptionResponse(Throwable e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getDataStructureType()
Throwable
getException()
boolean
isException()
void
setException(Throwable exception)
-
Methods inherited from class org.apache.activemq.command.Response
getCorrelationId, isResponse, setCorrelationId, visit
-
Methods inherited from class org.apache.activemq.command.BaseCommand
copy, getCommandId, getFrom, getTo, isBrokerInfo, isConnectionControl, isConsumerControl, isMarshallAware, isMessage, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setTo, toString, toString
-
-
-
-
Field Detail
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExceptionResponse
public ExceptionResponse()
-
ExceptionResponse
public ExceptionResponse(Throwable e)
-
-
Method Detail
-
getDataStructureType
public byte getDataStructureType()
- Specified by:
getDataStructureType
in interfaceDataStructure
- Overrides:
getDataStructureType
in classResponse
- Returns:
- The type of the data structure
-
getException
public Throwable getException()
-
setException
public void setException(Throwable exception)
-
isException
public boolean isException()
- Overrides:
isException
in classResponse
-
-