Class PublicationError

java.lang.Object
net.engio.mbassy.bus.error.PublicationError
Direct Known Subclasses:
InternalPublicationError

public class PublicationError extends Object
Publication errors are used to communicate exceptions that occur during message publication. The most common reason is most likely an exception thrown during the execution of a message handler. The publication error contains details about to the cause and location where error occurred. They are passed to all registered instances of IPublicationErrorHandler configured within the IBusConfiguration
  • Field Details

  • Constructor Details

    • PublicationError

      public PublicationError(Throwable cause, String errorMsg, Method handler, Object listener, IMessagePublication publication)
      Compound constructor, creating a PublicationError from the supplied objects.
      Parameters:
      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 errored
    • PublicationError

      public PublicationError(Throwable cause, String errorMsg, IMessagePublication publication)
    • PublicationError

      public PublicationError(Throwable cause, String errorMsg, SubscriptionContext context)
    • PublicationError

      public PublicationError(Throwable cause, String errorMsg)
    • PublicationError

      public PublicationError()
      Default constructor.
  • Method Details