FactorialHR.Error exception (factorial_hr v0.2.0)

Copy Markdown View Source

Structured error returned by FactorialHR operations.

The client returns errors as {:error, %FactorialHR.Error{}} so callers can branch on stable fields without parsing log messages or response bodies.

Summary

Types

t()

@type t() :: %FactorialHR.Error{
  __exception__: true,
  body: term(),
  message: String.t(),
  reason: term(),
  request: map(),
  status: pos_integer() | nil,
  type: atom()
}