Class TemporaryMessagingException

java.lang.Object
java.lang.Throwable
java.lang.Exception
jakarta.mail.MessagingException
com.novomind.ecom.api.imail.exception.TemporaryMessagingException
All Implemented Interfaces:
Serializable

public class TemporaryMessagingException extends jakarta.mail.MessagingException

The exception represents a temporary error during message processing

Since:
10.0.42
See Also:
  • Constructor Details

    • TemporaryMessagingException

      public TemporaryMessagingException(String message)
      Parameters:
      message - the detail message
      Since:
      10.0.42
    • TemporaryMessagingException

      public TemporaryMessagingException(String message, Exception e)
      Parameters:
      message - the detail message
      e - the embedded exception
      Since:
      10.0.42
  • Method Details

    • getDelay

      public Optional<Duration> getDelay()
      The method returns the optional time to delay the message processing. If a delay is set the message will be processed in the next polling cycle after the specified delay time.
      Returns:
      the optional delay duration time
      Since:
      12.33
    • setDelay

      public TemporaryMessagingException setDelay(Duration delay)
      Sets a duration time to enforce a delay before processing the message again.
      Parameters:
      delay - the delay duration to wait before processing the message again
      Returns:
      the instance for fluent usage
      Since:
      12.33