MutagenEx.Pipeline.ReporterErrorFacade behaviour (mutagen_ex v0.2.0)

Copy Markdown View Source

Behaviour for the :reporter_error slot of the Mix.Tasks.Mutagen dispatch table.

Production default: MutagenEx.JsonReporter (its emit_error/2 is the abort-shape encoder).

Summary

Callbacks

Encode an abort %Report{} + reason into {iodata, exit_code}.

Callbacks

emit_error(report, abort_reason)

@callback emit_error(
  report :: MutagenEx.JsonReporter.Report.t(),
  abort_reason :: atom()
) :: {iodata(), non_neg_integer()}

Encode an abort %Report{} + reason into {iodata, exit_code}.