effect-io-ai

Package: effect
Module: Cause

Cause.isExceededCapacityError

Checks whether an arbitrary value is an ExceededCapacityError.

Example (Checking the runtime type)

import { Cause } from "effect"

console.log(Cause.isExceededCapacityError(new Cause.ExceededCapacityError())) // true
console.log(Cause.isExceededCapacityError("nope")) // false

Signature

declare const isExceededCapacityError: (u: unknown) => u is ExceededCapacityError

Source

Since v4.0.0