|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.errai.bus.client.util.ErrorHelper
public class ErrorHelper
The ErrorHelper class facilitates handling and sending error messages to the correct place
Constructor Summary | |
---|---|
ErrorHelper()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ErrorHelper()
Method Detail |
---|
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 sent
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |