Drafter.Prompt.Stopped exception (drafter v0.6.0)

Copy Markdown View Source

Raised by the ! functions of Drafter.Prompt when a prompt ends without an answer.

reason is :cancelled, :interrupted, :eof or :not_a_terminal, as Drafter.Prompt.reason/0 describes them.

Summary

Types

t()

@type t() :: %Drafter.Prompt.Stopped{
  __exception__: true,
  reason: Drafter.Prompt.reason()
}