public class ErrorHelper extends Object
Constructor and Description |
---|
ErrorHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
disconnectRemoteBus(MessageBus bus,
Message message)
Sends a disconnect command message to the client bus
|
static void |
handleMessageDeliveryFailure(MessageBus bus,
Message message,
String errorMessage,
Throwable e,
boolean disconnect)
Handles the failed delivery of a message, and sends the error to the appropriate place
|
static void |
sendClientError(MessageBus bus,
Message message,
String errorMessage,
String additionalDetails)
Sends the error message via conversation to the ClientBusErrors subject
|
static void |
sendClientError(MessageBus bus,
Message message,
String errorMessage,
Throwable e)
Creates the stacktrace for the error message and sends it via conversation to the
ClientBusErrors subject
|
static void |
sendClientError(MessageBus bus,
String queueId,
String errorMessage,
String additionalDetails) |
public static void sendClientError(MessageBus bus, Message message, String errorMessage, Throwable e)
bus
- - the MessageBus that has received the message and
errorMessagemessage
- - the message that has encountered the errorerrorMessage
- - the error message producede
- - the exception receivedpublic static void sendClientError(MessageBus bus, Message message, String errorMessage, String additionalDetails)
bus
- - the MessageBus that has received the message and
errorMessagemessage
- - the message that has encountered the errorerrorMessage
- - the error message producedadditionalDetails
- - the stacktrace represented as a Stringpublic static void sendClientError(MessageBus bus, String queueId, String errorMessage, String additionalDetails)
public static void disconnectRemoteBus(MessageBus bus, Message message)
bus
- - the bus responsible for sending messages for the servermessage
- - the message that has encountered the errorpublic static void handleMessageDeliveryFailure(MessageBus bus, Message message, String errorMessage, Throwable e, boolean disconnect)
bus
- - the MessageBus that has received the message and
errorMessagemessage
- - the message that has encountered the errorerrorMessage
- - the error message producede
- - the exception receiveddisconnect
- - true if the bus should be disconnected after the error has been sentCopyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.