Karta.Messaging.Errors (Karta v1.0.0)

The error classes of an attempt, the same for every plug, and how long Karta waits before it tries a class again. See postduif-protocol.md 4.3 for what each means.

Summary

Functions

Casts a class from outside (an agent's frame) to one of the classes; unknown text is permanent.

True when the channel cannot be used for this recipient or now: another channel may be tried.

The classes.

Seconds to wait before trying again.

True when nothing was sent and the same channel may be tried again.

Functions

cast(class)

@spec cast(term()) :: String.t()

Casts a class from outside (an agent's frame) to one of the classes; unknown text is permanent.

channel_unusable?(class)

@spec channel_unusable?(String.t() | nil) :: boolean()

True when the channel cannot be used for this recipient or now: another channel may be tried.

classes()

@spec classes() :: [String.t()]

The classes.

delay_seconds(arg1, retry_after, attempt)

@spec delay_seconds(String.t(), non_neg_integer() | nil, pos_integer()) ::
  non_neg_integer()

Seconds to wait before trying again.

retryable?(class)

@spec retryable?(String.t() | nil) :: boolean()

True when nothing was sent and the same channel may be tried again.