QuitErrorRepresents 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.
export class class QuitErrorclass QuitError {
effect/platform/Terminal/QuitError: 'effect/platform/Terminal/QuitError';
_tag: 'QuitError';
name: string;
message: string;
stack: string;
cause: unknown;
pipe: { <A>(this: A): A; <A, B = never>(this: A, ab: (_: A) => B): B; <A, B = never, C = never>(this: A, ab: (_: A) => B, bc: (_: B) => C): C; <A, B = never, C = never, D = never>(this: A, ab: (_: A) => B, bc: (_: B) => C, cd: (_: C) => D): D; <…;
toString: () => string;
toJSON: () => unknown;
}
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.
QuitError extends import SchemaSchema.ErrorClass<class QuitErrorclass QuitError {
effect/platform/Terminal/QuitError: 'effect/platform/Terminal/QuitError';
_tag: 'QuitError';
name: string;
message: string;
stack: string;
cause: unknown;
pipe: { <A>(this: A): A; <A, B = never>(this: A, ab: (_: A) => B): B; <A, B = never, C = never>(this: A, ab: (_: A) => B, bc: (_: B) => C): C; <A, B = never, C = never, D = never>(this: A, ab: (_: A) => B, bc: (_: B) => C, cd: (_: C) => D): D; <…;
toString: () => string;
toJSON: () => unknown;
}
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.
QuitError>("QuitError")({
_tag: Schema.tag<"QuitError">(property) _tag: {
Type: S["Type"];
Encoded: S["Encoded"];
DecodingServices: S["DecodingServices"];
EncodingServices: S["EncodingServices"];
Iso: S["Iso"];
schema: S;
Rebuild: Rebuild;
ast: Ast;
annotate: (annotations: Schema.Annotations.Bottom<'QuitError', readonly []>) => Schema.withConstructorDefault<Schema.Literal<'QuitError'>>;
annotateKey: (annotations: Schema.Annotations.Key<'QuitError'>) => Schema.withConstructorDefault<Schema.Literal<'QuitError'>>;
check: (checks_0: Check<'QuitError'>, ...checks: Array<Check<'QuitError'>>) => Schema.withConstructorDefault<Schema.Literal<'QuitError'>>;
rebuild: (ast: Literal) => Schema.withConstructorDefault<Schema.Literal<'QuitError'>>;
make: (input: 'QuitError', options?: MakeOptions) => 'QuitError';
makeOption: (input: 'QuitError', options?: MakeOptions) => Option_.Option<'QuitError'>;
makeEffect: (input: 'QuitError', options?: MakeOptions) => Effect.Effect<'QuitError', SchemaError, never>;
pipe: { <A>(this: A): A; <A, B = never>(this: A, ab: (_: A) => B): B; <A, B = never, C = never>(this: A, ab: (_: A) => B, bc: (_: B) => C): C; <A, B = never, C = never, D = never>(this: A, ab: (_: A) => B, bc: (_: B) => C, cd: (_: C) => D): D; <…;
}
_tag: import SchemaSchema.tag("QuitError")
}) {
/**
* Marks this value as a terminal quit error for runtime guards.
*
* @since 4.0.0
*/
readonly [const QuitErrorTypeId: "effect/platform/Terminal/QuitError"QuitErrorTypeId] = const QuitErrorTypeId: "effect/platform/Terminal/QuitError"QuitErrorTypeId
}