← ZIO SQS docs

ProducerError

zio.sqs.producer.ProducerError
See theProducerError companion class
object ProducerError

Factory and recoverability check for ProducerError.

Attributes

Companion
class
Source
ProducerError.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def apply[T](entry: ReadOnly, event: ProducerEvent[T]): ProducerError[T]

Creates a new ProducerError from the failed result entry and the event that was published.

Creates a new ProducerError from the failed result entry and the event that was published.

Attributes

Source
ProducerError.scala

Checks whether the provided error code is recoverable. Only ServiceUnavailable and ThrottlingException are.

Checks whether the provided error code is recoverable. Only ServiceUnavailable and ThrottlingException are.

Value parameters

code

code to check.

Attributes

Returns

true if the code is recoverable, otherwise false.

Source
ProducerError.scala