public class DefaultErrorCallback extends Object implements ErrorCallback<Message>
MessageBuildParms.defaultErrorHandling()
was invoked
(which is the default when there is no explicit mention of error handling to the MessageBuilder).Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_ERROR_SUBJECT |
static DefaultErrorCallback |
INSTANCE |
Constructor and Description |
---|
DefaultErrorCallback() |
Modifier and Type | Method and Description |
---|---|
boolean |
error(Message message,
Throwable e)
Constructs an error message and puts it on the client message bus with the subject
CLIENT_ERROR_SUBJECT . |
public static final DefaultErrorCallback INSTANCE
public static final String CLIENT_ERROR_SUBJECT
public boolean error(Message message, Throwable e)
CLIENT_ERROR_SUBJECT
.
The error message is constructed with the following parts:
CLIENT_ERROR_SUBJECT
e.getMessage()
if e != null; otherwise, "Null exception reference"
e
if e != null; otherwise, "No additional details"
e
if e != null; otherwise, this message part is omitted.
error
in interface ErrorCallback<Message>
message
- The message or request for which the failure occurred.e
- The exception thrown or null if not availableCopyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.