antikythera v0.4.0 Antikythera.ErrorReason View Source

Type module for error that describes what went wrong during a process execution.

Possible values for t/0 are:

  • {:error, Exception.t} : An exception was thrown and was not handled.
  • :timeout : Execution timed out.
  • :killed : Process was brutally killed, typically due to heap limit violation.
  • {:throw, any} : A value was thrown but not caught.
  • {:exit, any} : Process exited before completing the execution.

Link to this section Summary

Link to this section Types

Link to this type

gear_action_error_reason()

View Source

Specs

gear_action_error_reason() :: t() | :timeout_in_epool_checkout

Specs

stack_item() ::
  {module(), atom(), arity() | [any()], [file: charlist(), line: pos_integer()]}

Specs

stacktrace() :: [stack_item()]

Specs

t() ::
  {:error, Exception.t()}
  | {:throw, any()}
  | {:exit, any()}
  | :timeout
  | :killed

Link to this section Functions

Link to this function

format(reason, stacktrace)

View Source

Specs

Specs

valid?(term()) :: boolean()