public class PublicationError extends Object
IPublicationErrorHandler
configured within
the BusConfiguration
Constructor and Description |
---|
PublicationError()
Default constructor.
|
PublicationError(Throwable cause,
String errorMsg) |
PublicationError(Throwable cause,
String errorMsg,
IMessagePublication publication) |
PublicationError(Throwable cause,
String errorMsg,
Method handler,
Object listener,
IMessagePublication publication)
Compound constructor, creating a PublicationError from the supplied objects.
|
PublicationError(Throwable cause,
String errorMsg,
SubscriptionContext context) |
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause() |
Method |
getHandler() |
Object |
getListener() |
String |
getMessage() |
Object |
getPublishedMessage() |
PublicationError |
setCause(Throwable cause)
Assigns the cause of this PublicationError.
|
PublicationError |
setHandler(Method handler) |
PublicationError |
setListener(Object listener) |
PublicationError |
setMessage(String message) |
PublicationError |
setPublication(IMessagePublication publication) |
PublicationError |
setPublishedMessage(Object message) |
String |
toString() |
public PublicationError(Throwable cause, String errorMsg, Method handler, Object listener, IMessagePublication publication)
cause
- The Throwable giving rise to this PublicationError.errorMsg
- The message to send.handler
- The method where the error was created.listener
- The object in which the PublicationError was generated.publication
- The publication that erroredpublic PublicationError(Throwable cause, String errorMsg, IMessagePublication publication)
public PublicationError(Throwable cause, String errorMsg, SubscriptionContext context)
public PublicationError()
public Throwable getCause()
public PublicationError setCause(Throwable cause)
cause
- A Throwable which gave rise to this PublicationError.public String getMessage()
public PublicationError setMessage(String message)
public PublicationError setPublishedMessage(Object message)
public Method getHandler()
public PublicationError setHandler(Method handler)
public Object getListener()
public PublicationError setListener(Object listener)
public Object getPublishedMessage()
public PublicationError setPublication(IMessagePublication publication)
Copyright © 2018. All rights reserved.