public class PublicationError extends Object
IPublicationErrorHandler
configured within
the IBusConfiguration
Constructor and Description |
---|
PublicationError()
Default constructor.
|
PublicationError(Throwable cause,
String message) |
PublicationError(Throwable cause,
String message,
IMessagePublication publication) |
PublicationError(Throwable cause,
String message,
Method handler,
Object listener,
Object publishedObject)
Compound constructor, creating a PublicationError from the supplied objects.
|
PublicationError(Throwable cause,
String message,
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 |
setPublishedMessage(Object publishedMessage) |
String |
toString() |
public PublicationError(Throwable cause, String message, Method handler, Object listener, Object publishedObject)
cause
- The Throwable giving rise to this PublicationError.message
- The message to send.handler
- The method where the error was created.listener
- The object in which the PublicationError was generated.publishedObject
- The published object which gave rise to the error.public PublicationError(Throwable cause, String message, IMessagePublication publication)
public PublicationError(Throwable cause, String message, 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 Method getHandler()
public PublicationError setHandler(Method handler)
public Object getListener()
public PublicationError setListener(Object listener)
public Object getPublishedMessage()
public PublicationError setPublishedMessage(Object publishedMessage)
Copyright © 2016. All rights reserved.