(u: unknown): u is ExceededCapacityErrorChecks 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")) // falseguards
Source effect/Cause.ts:15581 lines
export const const isExceededCapacityError: (
u: unknown
) => u is ExceededCapacityError
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
isExceededCapacityError: (u: unknownu: unknown) => u: unknownu is ExceededCapacityError = import effecteffect.const isExceededCapacityError: (
u: unknown
) => u is Cause.ExceededCapacityError
isExceededCapacityError