Class SkipProcessingException

  • All Implemented Interfaces:
    Serializable

    public class SkipProcessingException
    extends RuntimeException
    Indicates that processing should be skipped from the point on where this exception is thrown.
    See Also:
    Serialized Form
    • Constructor Detail

      • SkipProcessingException

        public SkipProcessingException​(String message)
        Skip processing with an explanation of why.
        Parameters:
        message - Why should processing be skipped?
    • Method Detail

      • send

        public SkipProcessingException send​(Message... messages)
        Add messages to send to the next workflow job.
        Parameters:
        messages - The messages to send.
        Returns:
        this for a fluent interface.
      • send

        public SkipProcessingException send​(Collection<Message> messages)
        Add messages to send to the next workflow job.
        Parameters:
        messages - The messages to send.
        Returns:
        this for a fluent interface.
      • getOutgoingMessages

        public List<Message> getOutgoingMessages()
        Returns:
        The messages that should be sent to the next workflow job.
      • causedBy

        public SkipProcessingException causedBy​(Throwable cause)
        Add the exceptions cause to the exception without interfering with the format string arguments.
        Parameters:
        cause - The cause to add
        Returns:
        An augmented version of the exception including the cause