Hyperlinkv0.8.0-beta.28

Terminal

Terminal.QuitErrorclasseffect/Terminal.ts:124
QuitError

Represents an error that occurs when a user attempts to quit out of a Terminal prompt for input (usually by entering ctrl+c).

When to use

Use when implementing terminal input or prompts that need to signal user-requested cancellation through the typed error channel.

QuitErrorisQuitError
Source effect/Terminal.ts:12410 lines
export class QuitError extends Schema.ErrorClass<QuitError>("QuitError")({
  _tag: Schema.tag("QuitError")
}) {
  /**
   * Marks this value as a terminal quit error for runtime guards.
   *
   * @since 4.0.0
   */
  readonly [QuitErrorTypeId] = QuitErrorTypeId
}
Referenced by 2 symbols