SuperWorker.Error exception (SuperWorker v0.7.0)

Copy Markdown View Source

Exception module for SuperWorker errors.

This module defines exceptions that can be raised by SuperWorker operations.

Summary

Functions

Formats an error reason into a human-readable message.

Types

t()

@type t() :: %SuperWorker.Error{
  __exception__: term(),
  message: String.t(),
  reason: atom() | String.t()
}

Functions

format_message(reason)

@spec format_message(atom() | String.t()) :: String.t()

Formats an error reason into a human-readable message.