final case class MapError[T](f: PartialFunction[Throwable, Throwable]) extends SimpleLinearGraphStage[T] with Product with Serializable

Maps error with the provided function if it is defined for an error or, otherwise, passes it on unchanged.

While similar to Recover this stage can be used to transform an error signal to a different one *without* logging it as an error in the process. So in that sense it is NOT exactly equivalent to recover(t => throw t2) since recover would log the t2 error.

Source
Ops.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MapError
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. SimpleLinearGraphStage
  7. GraphStage
  8. GraphStageWithMaterializedValue
  9. Graph
  10. AnyRef
  11. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MapError(f: PartialFunction[Throwable, Throwable])

Type Members

  1. type Shape = FlowShape[T, T]

    Type-level accessor for the shape parameter of this graph.

    Type-level accessor for the shape parameter of this graph.

    Definition Classes
    Graph

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from MapError[T] to any2stringadd[MapError[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (MapError[T], B)
    Implicit
    This member is added by an implicit conversion from MapError[T] to ArrowAssoc[MapError[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def addAttributes(attr: Attributes): Graph[FlowShape[T, T], NotUsed]
    Definition Classes
    Graph
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def async: Graph[FlowShape[T, T], NotUsed]

    Put an asynchronous boundary around this Graph

    Put an asynchronous boundary around this Graph

    Definition Classes
    Graph
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def createLogic(attr: Attributes): GraphStageLogic with InHandler with OutHandler
    Definition Classes
    MapErrorGraphStage
  11. final def createLogicAndMaterializedValue(inheritedAttributes: Attributes): (GraphStageLogic, NotUsed)
  12. def ensuring(cond: (MapError[T]) ⇒ Boolean, msg: ⇒ Any): MapError[T]
    Implicit
    This member is added by an implicit conversion from MapError[T] to Ensuring[MapError[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: (MapError[T]) ⇒ Boolean): MapError[T]
    Implicit
    This member is added by an implicit conversion from MapError[T] to Ensuring[MapError[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean, msg: ⇒ Any): MapError[T]
    Implicit
    This member is added by an implicit conversion from MapError[T] to Ensuring[MapError[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean): MapError[T]
    Implicit
    This member is added by an implicit conversion from MapError[T] to Ensuring[MapError[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. val f: PartialFunction[Throwable, Throwable]
  18. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from MapError[T] to StringFormat[MapError[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  21. val in: Inlet[T]
    Definition Classes
    SimpleLinearGraphStage
  22. def initialAttributes: Attributes
    Attributes
    protected
    Definition Classes
    GraphStageWithMaterializedValue
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final lazy val module: Module

    INTERNAL API.

    INTERNAL API.

    Every materializable element must be backed by a stream layout module

    Definition Classes
    GraphStageWithMaterializedValueGraph
  25. def named(name: String): Graph[FlowShape[T, T], NotUsed]
    Definition Classes
    Graph
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  29. val out: Outlet[T]
    Definition Classes
    SimpleLinearGraphStage
  30. val shape: FlowShape[T, T]
    Definition Classes
    SimpleLinearGraphStageGraph
  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def withAttributes(attr: Attributes): Graph[FlowShape[T, T], NotUsed]
    Definition Classes
    GraphStageWithMaterializedValueGraph
  36. def [B](y: B): (MapError[T], B)
    Implicit
    This member is added by an implicit conversion from MapError[T] to ArrowAssoc[MapError[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from SimpleLinearGraphStage[T]

Inherited from GraphStage[FlowShape[T, T]]

Inherited from Graph[FlowShape[T, T], NotUsed]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from MapError[T] to any2stringadd[MapError[T]]

Inherited by implicit conversion StringFormat from MapError[T] to StringFormat[MapError[T]]

Inherited by implicit conversion Ensuring from MapError[T] to Ensuring[MapError[T]]

Inherited by implicit conversion ArrowAssoc from MapError[T] to ArrowAssoc[MapError[T]]

Ungrouped