Class Reject

java.lang.Object
org.apache.pekko.persistence.testkit.Reject
All Implemented Interfaces:
Serializable, ProcessingFailure, ProcessingResult, scala.Equals, scala.Product

public final class Reject extends Object implements ProcessingFailure, scala.Product, Serializable
Emulates rejection of operation by the journal with error exception. Has the same meaning as StorageFailure for snapshot storage, because it does not support rejections.
See Also:
  • Constructor Details

  • Method Details

    • $lessinit$greater$default$1

      public static Throwable $lessinit$greater$default$1()
    • create

      public static Reject create(Throwable error)
    • create

      public static Reject create()
    • apply

      public static Reject apply(Throwable error)
    • apply$default$1

      public static Throwable apply$default$1()
    • unapply

      public static scala.Option<Throwable> unapply(Reject x$0)
    • error

      public Throwable error()
      Specified by:
      error in interface ProcessingFailure
    • getError

      public Throwable getError()
    • copy

      public Reject copy(Throwable error)
    • copy$default$1

      public Throwable copy$default$1()
    • productPrefix

      public String productPrefix()
      Specified by:
      productPrefix in interface scala.Product
    • productArity

      public int productArity()
      Specified by:
      productArity in interface scala.Product
    • productElement

      public Object productElement(int x$1)
      Specified by:
      productElement in interface scala.Product
    • productIterator

      public scala.collection.Iterator<Object> productIterator()
      Specified by:
      productIterator in interface scala.Product
    • canEqual

      public boolean canEqual(Object x$1)
      Specified by:
      canEqual in interface scala.Equals
    • productElementName

      public String productElementName(int x$1)
      Specified by:
      productElementName in interface scala.Product
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object x$1)
      Specified by:
      equals in interface scala.Equals
      Overrides:
      equals in class Object