Class MessagingError

java.lang.Object
com.couchbase.lite.MessagingError

public class MessagingError extends Object
ENTERPRISE EDITION API

The messaging error.

  • Constructor Details

    • MessagingError

      public MessagingError(@NonNull 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 Details

    • getError

      @NonNull public 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
    • toString

      @NonNull public String toString()
      Overrides:
      toString in class Object