Class InvalidPartnerActorException

All Implemented Interfaces:
Serializable, scala.Equals, scala.Product

public final class InvalidPartnerActorException extends IllegalStateException implements scala.Product, Serializable
Stream refs establish a connection between a local and remote actor, representing the origin and remote sides of a stream. Each such actor refers to the other side as its "partner". We make sure that no other actor than the initial partner can send demand/messages to the other side accidentally.

This exception is thrown when a message is received from a non-partner actor, which could mean a bug or some actively malicient behavior from the other side.

This is not meant as a security feature, but rather as plain sanity-check.

See Also:
  • Constructor Details

    • InvalidPartnerActorException

      public InvalidPartnerActorException(ActorRef expectedRef, ActorRef gotRef, String msg)
  • Method Details

    • toString

      public static final String toString()
    • apply

      public static InvalidPartnerActorException apply(ActorRef expectedRef, ActorRef gotRef, String msg)
    • unapply

      public static scala.Option<scala.Tuple3<ActorRef,ActorRef,String>> unapply(InvalidPartnerActorException x$0)
    • expectedRef

      public ActorRef expectedRef()
    • gotRef

      public ActorRef gotRef()
    • msg

      public String msg()
    • copy

      public InvalidPartnerActorException copy(ActorRef expectedRef, ActorRef gotRef, String msg)
    • copy$default$1

      public ActorRef copy$default$1()
    • copy$default$2

      public ActorRef copy$default$2()
    • copy$default$3

      public String copy$default$3()
    • 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
    • equals

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