Class MessagingError


  • public class MessagingError
    extends java.lang.Object
    ENTERPRISE EDITION API

    The messaging error.

    • Constructor Summary

      Constructors 
      Constructor Description
      MessagingError​(java.lang.Exception error, boolean recoverable)
      Creates a MessagingError with the given error and recoverable flag identifying if the error is recoverable or not.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Exception getError()
      Gets error object.
      boolean isRecoverable()
      Is the error recoverable?
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MessagingError

        public MessagingError​(@NonNull
                              java.lang.Exception error,
                              boolean recoverable)
        Creates a MessagingError with the given error and recoverable flag identifying if the error is recoverable or not. The replicator uses recoverable flag to determine whether the replication should be retried or stopped as the error is non-recoverable.
        Parameters:
        error - the error
        recoverable - the recoverable flag
    • Method Detail

      • getError

        @NonNull
        public java.lang.Exception getError()
        Gets error object.
        Returns:
        the error object
      • isRecoverable

        public boolean isRecoverable()
        Is the error recoverable?
        Returns:
        the recoverable flag identifying whether the error is recoverable or not