Package: effect
Module: Cause
An error indicating that an operation exceeded its time limit.
Details
Produced by Effect.timeout and related APIs. Implements
YieldableError.
Example (Creating and checking a TimeoutError)
import { Cause } from "effect"
const error = new Cause.TimeoutError("Operation timed out")
console.log(error._tag) // "TimeoutError"
console.log(error.message) // "Operation timed out"
Signature
export interface TimeoutError extends YieldableError {
readonly [TimeoutErrorTypeId]: typeof TimeoutErrorTypeId
readonly _tag: "TimeoutError"
}
Since v4.0.0