View Source Dune.Failure (dune v0.3.4)

A struct returned when Dune parsing or evaluation fails.


  • message (string): the error message to display to the user
  • type (atom): the nature of the error
  • stdio (string): captured standard output

Link to this section Summary

Link to this section Types

@type error_type() ::
  | :module_restricted
  | :module_conflict
  | :timeout
  | :exception
  | :compile_error
  | :parsing
  | :memory
  | :reductions
@type t() :: %Dune.Failure{message: String.t(), stdio: binary(), type: error_type()}